Documentation

NodeTraverserInterface

Table of Contents

addVisitor()  : mixed
Adds a visitor.
removeVisitor()  : mixed
Removes an added visitor.
traverse()  : array<string|int, Node>
Traverses an array of nodes using the registered visitors.

Methods

traverse()

Traverses an array of nodes using the registered visitors.

public traverse(array<string|int, Node$nodes) : array<string|int, Node>
Parameters
$nodes : array<string|int, Node>

Array of nodes

Return values
array<string|int, Node>

Traversed array of nodes

Search results