public function addFilter(CollectionInterface $collection, $typeAlias, $name, array $options = [])
    {
        $filter = $this->filterCreator->create($typeAlias, $name, $options);
        $collection->addFilter($filter);

        return $filter;
    }
public function addFilter(CollectionInterface $collection, $typeAlias, $name, array $options = [])
    {
        $filter = $this->filterCreator->create($typeAlias, $name, $options);
        $collection->addFilter($filter);

        return $filter;
    }
public function addFilter ( CollectionInterface $ collection , $ typeAlias , $ name , array $ options = [ ] ) { $ filter = $ this -> filterCreator -> create ( $ typeAlias , $ name , $ options ) ; $ collection -> addFilter ( $ filter ) ; return $ filter ; }
Adds a filter to the collection.

@param CollectionInterface $collection The filter collection
@param string              $typeAlias  The alias of the filter service definition
@param string              $name       The internal name of the filter
@param array               $options    (Optional) The options of the filter

@see \Da2e\FiltrationBundle\Filter\Creator\FilterCreatorInterface::create() for complete documentation
@see \Da2e\FiltrationBundle\Filter\Collection\CollectionInterface::addFilter() for complete documentation

@return FilterInterface
Adds a filter to the collection .