\PhpParserNodeTraverserInterface

Summary

Methods
Constants
addVisitor()
removeVisitor()
traverse()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

addVisitor()

addVisitor(\PhpParser\NodeVisitor  $visitor) 

Adds a visitor.

Parameters

\PhpParser\NodeVisitor $visitor

Visitor to add

removeVisitor()

removeVisitor(\PhpParser\NodeVisitor  $visitor) 

Removes an added visitor.

Parameters

\PhpParser\NodeVisitor $visitor

traverse()

traverse(array<mixed,\PhpParser\Node>  $nodes) : array<mixed,\PhpParser\Node>

Traverses an array of nodes using the registered visitors.

Parameters

array<mixed,\PhpParser\Node> $nodes

Array of nodes

Returns

array<mixed,\PhpParser\Node> —

Traversed array of nodes