class League / CommonMark / Node / NodeWalker
final

NodeWalker

Properties

private

$root

Default: null
private

$current

Default: null
private

$entering

Default: null

Methods

public

__construct ( Node $root ) : void

public

next ( ) : void

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

resumeAt ( Node $node , bool $entering ) : void

Resets the iterator to resume at the specified node