protected function applyFilter(FilterInterface $filter, $handler)
    {
        if (!($filter instanceof CustomApplyFilterInterface) || !is_callable($filter->getApplyFilterFunction())) {
            return $filter->applyFilter($handler);
        }

        return call_user_func($filter->getApplyFilterFunction(), $filter, $handler);
    }
protected function applyFilter(FilterInterface $filter, $handler)
    {
        if (!($filter instanceof CustomApplyFilterInterface) || !is_callable($filter->getApplyFilterFunction())) {
            return $filter->applyFilter($handler);
        }

        return call_user_func($filter->getApplyFilterFunction(), $filter, $handler);
    }
protected function applyFilter ( FilterInterface $ filter , $ handler ) { if ( ! ( $ filter instanceof CustomApplyFilterInterface ) || ! is_callable ( $ filter -> getApplyFilterFunction ( ) ) ) { return $ filter -> applyFilter ( $ handler ) ; } return call_user_func ( $ filter -> getApplyFilterFunction ( ) , $ filter , $ handler ) ; }
Applies filtration.
If the filter has custom function for filtration applying, than it will be used.

@param FilterInterface|CustomApplyFilterInterface $filter
@param object|mixed                               $handler Any supported resource, which can handle filtration

@return static
Applies filtration . If the filter has custom function for filtration applying than it will be used .