Documentation

NodeWalker
in package

FinalYes

Table of Contents

Properties

$current  : Node|null
$entering  : bool
$root  : Node

Methods

__construct()  : mixed
next()  : NodeWalkerEvent|null
Returns an event which contains node and entering flag (entering is true when we enter a Node from a parent or sibling, and false when we reenter it from child)
resumeAt()  : void
Resets the iterator to resume at the specified node

Properties

$current

private Node|null $current = null
Tags
psalm-readonly-allow-private-mutation

$entering

private bool $entering
Tags
psalm-readonly-allow-private-mutation

Methods

next()

Returns an event which contains node and entering flag (entering is true when we enter a Node from a parent or sibling, and false when we reenter it from child)

public next() : NodeWalkerEvent|null
Return values
NodeWalkerEvent|null

resumeAt()

Resets the iterator to resume at the specified node

public resumeAt(Node $node[, bool $entering = true ]) : void
Parameters
$node : Node
$entering : bool = true

        
On this page

Search results