src/Charcoal/Source/FilterCollectionTrait.php
public function traverseFilters(callable $callable)
    {
        foreach ($this->filters() as $expr) {
            /**
             * @param  FilterInterface           $expr The iterated filter expression object.
             * @param  FilterCollectionInterface $this The context of the traversal.
             * @return void
             */
            $callable($expr, $this);
            if ($expr instanceof FilterCollectionInterface) {
                $expr->traverseFilters($callable);
            }
        }

        return $this;
    }
public function traverseFilters(callable $callable)
    {
        foreach ($this->filters() as $expr) {
            /**
             * @param  FilterInterface           $expr The iterated filter expression object.
             * @param  FilterCollectionInterface $this The context of the traversal.
             * @return void
             */
            $callable($expr, $this);
            if ($expr instanceof FilterCollectionInterface) {
                $expr->traverseFilters($callable);
            }
        }

        return $this;
    }
public function traverseFilters ( callable $ callable ) { foreach ( $ this -> filters ( ) as $ expr ) { /**
             * @param  FilterInterface           $expr The iterated filter expression object.
             * @param  FilterCollectionInterface $this The context of the traversal.
             * @return void
             */ $ callable ( $ expr , $ this ) ; if ( $ expr instanceof FilterCollectionInterface ) { $ expr -> traverseFilters ( $ callable ) ; } } return $ this ; }
Traverses the tree of query filters and applies a user function to every expression.

@param  callable $callable The function to run for each expression.
@return self
Traverses the tree of query filters and applies a user function to every expression .