public function each(callable $callback)
    {
        foreach ($this->nodes as $index => $node) {
            $return_value = \call_user_func($callback, $node, $index);

            if ($return_value === false) {
                break;
            }
        }

        return $this;
    }
public function each(callable $callback)
    {
        foreach ($this->nodes as $index => $node) {
            $return_value = \call_user_func($callback, $node, $index);

            if ($return_value === false) {
                break;
            }
        }

        return $this;
    }
public function each ( callable $ callback ) { foreach ( $ this -> nodes as $ index => $ node ) { $ return_value = \ call_user_func ( $ callback , $ node , $ index ) ; if ( $ return_value === false ) { break ; } } return $ this ; }
Iterate over result set and executing a callback for each node

@param callable $callback

@return $this
Iterate over result set and executing a callback for each node