public function applyFilter($filter, $args = null)
    {
        $args = func_get_args();
        $args[0] = $this;
        return call_user_func_array(
            $filter instanceof Closure ? $filter : $this->getConnection()->getFilterCallback($filter),
            $args
        );
    }
public function applyFilter($filter, $args = null)
    {
        $args = func_get_args();
        $args[0] = $this;
        return call_user_func_array(
            $filter instanceof Closure ? $filter : $this->getConnection()->getFilterCallback($filter),
            $args
        );
    }
public function applyFilter ( $ filter , $ args = null ) { $ args = func_get_args ( ) ; $ args [ 0 ] = $ this ; return call_user_func_array ( $ filter instanceof Closure ? $ filter : $ this -> getConnection ( ) -> getFilterCallback ( $ filter ) , $ args ) ; }
Applies given filter to current statement

@param Closure|string $filter
@param mixed|null $args
@return FilteringResult|null
Applies given filter to current statement