public function add(FilterInterface $filter, $priority = 0)
    {
        $this->filters[$priority][] = $filter;
        $this->sorted = null;

        return $this;
    }
public function add(FilterInterface $filter, $priority = 0)
    {
        $this->filters[$priority][] = $filter;
        $this->sorted = null;

        return $this;
    }
public function add ( FilterInterface $ filter , $ priority = 0 ) { $ this -> filters [ $ priority ] [ ] = $ filter ; $ this -> sorted = null ; return $ this ; }
Registers a given FilterInterface in an internal array of filters for
later application to an instance of ImageInterface

@param  FilterInterface $filter
@param  int             $priority
@return FilterChain
Registers a given FilterInterface in an internal array of filters for later application to an instance of ImageInterface