lithium\util\collection\Filters::next PHP Method

next() public method

Provides short-hand convenience syntax for filter chaining.
See also: lithium\core\Object::applyFilter()
See also: lithium\core\Object::_filter()
public next ( object $self, array $params, array $chain ) : mixed
$self object The object instance that owns the filtered method.
$params array An associative array containing the parameters passed to the filtered method.
$chain array The Filters object instance containing this chain of filters.
return mixed Returns the return value of the next filter in the chain.
    public function next($self, $params, $chain)
    {
        if (empty($self) || empty($chain)) {
            return parent::next();
        }
        $next = parent::next();
        return $next($self, $params, $chain);
    }