src/DotsUnited/BundleFu/Filter/FilterChain.php
public function addFilter(FilterInterface $filter, $placement = self::CHAIN_APPEND)
    {
        if ($placement == self::CHAIN_PREPEND) {
            array_unshift($this->filters, $filter);
        } else {
            $this->filters[] = $filter;
        }

        return $this;
    }
public function addFilter(FilterInterface $filter, $placement = self::CHAIN_APPEND)
    {
        if ($placement == self::CHAIN_PREPEND) {
            array_unshift($this->filters, $filter);
        } else {
            $this->filters[] = $filter;
        }

        return $this;
    }
public function addFilter ( FilterInterface $ filter , $ placement = self :: CHAIN_APPEND ) { if ( $ placement == self :: CHAIN_PREPEND ) { array_unshift ( $ this -> filters , $ filter ) ; } else { $ this -> filters [ ] = $ filter ; } return $ this ; }
Adds a filter to the chain

@param  FilterInterface $filter
@param  string          $placement
@return FilterChain
Adds a filter to the chain