@param FilterFactorValue $factor

@return $this
353260
public function setFactor(FilterFactorValue $factor)
    {
        $this->factorItem[$factor->getId()] = $factor->getCoefficient();

        return $this;
    }
1216926
public function setFilterDocumentType($filterDocumentType)
    {
        if ($filterDocumentType instanceof DocumentType) {
            $this->filterDocumentType = $filterDocumentType->name();
        } else {
            $this->filterDocumentType = $filterDocumentType;
        }

        return $this;
    }
808297
public function setFilter($filter = null)
    {
        $this->filter = is_callable($filter) ? $filter : null;

        return $this;
    }
18969
public function addFilter($filter)
    {
        if (!($filter instanceof FilterInterface) && !is_callable($filter)) {
            $filter = FilterHelper::create($filter);
        }

        $this->filter->addFilter($filter);

        return $this;
    }
759176
public function addFilter(FilterConfig $filter)
    {
        $this->getFilters()->push($filter);
        $filter->attach($this);
        return $this;
    }
77082
public function filter ($filtername)
	{
		$arguments = func_get_args ();
		array_shift ($arguments);

		$filters = explode (',', $filtername);
		foreach ($filters as $filter)
		{
			$objfilter = new Filter ($filter);
			$objfilter->setArguments ($arguments);

			$this->filters[] = $objfilter;
		}

		return $this;
	}
511926
public function whereEq($field, $value)
    {
        $this->_filters[] = [$field => $this->normalizeValue($field, $value)];

        return $this;
    }
1320497
public function changeToFactor($factor)
    {
        if (!$factor) {
            $this->perTaxRate = [];

            return $this;
        }

        // Note: do not round here!
        foreach (array_keys($this->perTaxRate) as $percent) {
            foreach (['gross', 'net'] as $property) {
                $this->perTaxRate[$percent][$property] *= $factor;
            }
        }

        return $this;
    }
1114297
public function add($filter)
    {
        $index = $this->indexOf($filter);

        if ($index === -1) {
            $this->children[] = $filter;
            $filter->setBuilder($this->builder)->setParent($this);
        }

        return $this;
    }
1281496
public function setRetryFactor($factor)
    {
        if (!(is_int($factor) || is_float($factor)) || $factor < 1) {
            throw new \Plop\Exception('Invalid value');
        }
        $this->retryFactor = $factor;
        return $this;
    }
832146
private function _getNodesByFactor($nodes, $factor)
    {
        $ret = array();
        foreach ($nodes as $node) {
            $items = $factor->filter($node);
            $ret = Dom::mergeNodes($ret, $items);
        }
        return $ret;
    }
619738
public function AddFilter(CriteriaFilter $filter)
	{
		if (!$this->Filters) $this->Filters = array();
		$this->Filters[] = $filter;
	}
960784
public function setFilterable($filterable = true)
    {
        if(!is_bool($filterable))
            throw new FieldFilterableMustBeBooleanException();

        $this->filterable = $filterable;
        return $this;
    }
437576
public function add(FilterRule $rule)
    {
        $this->rules[$rule->getName()] = $rule;

        if (!\is_null($rule->getValue())) {
            $this->hasDefaults = true;
        }

        return $this;
    }
633867
public function addFilter($filterArray)
    {
        foreach ($filterArray as $expression => $value) {
            $this->filters[][$expression] = $value;
        }

        return $this;
    }
197184
public function makeFilter(
        $filterType = null,
        $filterField = null,
        $filterValue = null
    ) {
        if ($filterType === null &&
            $filterField === null &&
            $filterValue === null)
            $this->filter = array();
        else
            $this->filter = array(
                'filter_type' => $filterType,
                'filter_field' => $filterField,
                'filter_value' => $filterValue
            );

        return $this;
    }
1311977
private function addFilterResAV($f, $priority = FilterChain::DEFAULT_PRIORITY) {
		$this->_filtersResAV->attach($f, $priority);
	}