public function buildFilters($options) {
        if (empty($options['filters']) || !is_array($options['filters'])) return [];
        return array_filter(array_map(function($filter) {
            if (empty($this->config['filters'][$filter])) return;
            return new $this->config['filters'][$filter];
        }, $options['filters']));
    }
public function buildFilters($options) {
        if (empty($options['filters']) || !is_array($options['filters'])) return [];
        return array_filter(array_map(function($filter) {
            if (empty($this->config['filters'][$filter])) return;
            return new $this->config['filters'][$filter];
        }, $options['filters']));
    }
public function buildFilters ( $ options ) { if ( empty ( $ options [ 'filters' ] ) || ! is_array ( $ options [ 'filters' ] ) ) return [ ] ; return array_filter ( array_map ( function ( $ filter ) { if ( empty ( $ this -> config [ 'filters' ] [ $ filter ] ) ) return ; return new $ this -> config [ 'filters' ] [ $ filter ] ; } , $ options [ 'filters' ] ) ) ; }
Build filter class instancees

@param  array $options
@return array|null Array of filter instances
Build filter class instancees