public function addFilter(AnFilterInterface $filter, $priority = null)
    {
        $this->_chain->enqueue($filter, $priority);
        return $this;
    }
public function addFilter(AnFilterInterface $filter, $priority = null)
    {
        $this->_chain->enqueue($filter, $priority);
        return $this;
    }
public function addFilter ( AnFilterInterface $ filter , $ priority = null ) { $ this -> _chain -> enqueue ( $ filter , $ priority ) ; return $ this ; }
Add a filter based on priority

@param object 	A KFilter
@param integer	The command priority, usually between 1 (high priority) and 5 (lowest),
default is 3. If no priority is set, the command priority will be used
instead.

@return AnFilterAbstract
Add a filter based on priority