public function applyFromArray($filters)
    {
        foreach ($filters as $key => $value)
        {
            $filter = $this->factory->get('filter')->make(is_callable($value) ? $key : $value)->setResource($this);

            is_callable($value) and call_user_func($value, $filter);

            $this->filters[$filter->getFilter()] = $filter;
        }

        return $this;
    }
public function applyFromArray($filters)
    {
        foreach ($filters as $key => $value)
        {
            $filter = $this->factory->get('filter')->make(is_callable($value) ? $key : $value)->setResource($this);

            is_callable($value) and call_user_func($value, $filter);

            $this->filters[$filter->getFilter()] = $filter;
        }

        return $this;
    }
public function applyFromArray ( $ filters ) { foreach ( $ filters as $ key => $ value ) { $ filter = $ this -> factory -> get ( 'filter' ) -> make ( is_callable ( $ value ) ? $ key : $ value ) -> setResource ( $ this ) ; is_callable ( $ value ) and call_user_func ( $ value , $ filter ) ; $ this -> filters [ $ filter -> getFilter ( ) ] = $ filter ; } return $ this ; }
Apply filter from an array of filters.

@param  array  $filters
@return \Basset\Filter\Filterable
Apply filter from an array of filters .