src/Charcoal/Source/FilterCollectionTrait.php
public function addFilters(array $filters)
    {
        foreach ($filters as $key => $filter) {
            $this->addFilter($filter);

            /** Name the expression if $key is a non-numeric string. */
            if (is_string($key) && !is_numeric($key)) {
                $filter = end($this->filters);
                $filter->setName($key);
            }
        }

        return $this;
    }
public function addFilters(array $filters)
    {
        foreach ($filters as $key => $filter) {
            $this->addFilter($filter);

            /** Name the expression if $key is a non-numeric string. */
            if (is_string($key) && !is_numeric($key)) {
                $filter = end($this->filters);
                $filter->setName($key);
            }
        }

        return $this;
    }
public function addFilters ( array $ filters ) { foreach ( $ filters as $ key => $ filter ) { $ this -> addFilter ( $ filter ) ; /** Name the expression if $key is a non-numeric string. */ if ( is_string ( $ key ) && ! is_numeric ( $ key ) ) { $ filter = end ( $ this -> filters ) ; $ filter -> setName ( $ key ) ; } } return $ this ; }
Append one or more query filters on this object.

@uses   self::processFilter()
@param  mixed[] $filters One or more filters to add on this expression.
@return self
Append one or more query filters on this object .