protected function getFilter($name)
    {
        // filters must exists in configured filters
        if (!array_key_exists($name, $this->filters)) {
            throw new Exception('Invalid filter '.$name.'. Check your mapping configuration');
        }

        return $this->filters[$name];
    }
protected function getFilter($name)
    {
        // filters must exists in configured filters
        if (!array_key_exists($name, $this->filters)) {
            throw new Exception('Invalid filter '.$name.'. Check your mapping configuration');
        }

        return $this->filters[$name];
    }
protected function getFilter ( $ name ) { // filters must exists in configured filters if ( ! array_key_exists ( $ name , $ this -> filters ) ) { throw new Exception ( 'Invalid filter ' . $ name . '. Check your mapping configuration' ) ; } return $ this -> filters [ $ name ] ; }
Return a filter by its name. Throw an exception if it is not exists.

@param string $name
@return FilterInterface
@throws Exception
Return a filter by its name . Throw an exception if it is not exists .