extends |
NodeVisitorAbstract |
---|
This visitor can be used to find and collect all nodes satisfying some criterion determined by a filter callback.
Methods | ||
---|---|---|
public
|
__construct(callable $filterCallback)
|
# |
public
|
getFoundNodes(): Node[]
|
# |
public
|
beforeTraverse(array $nodes)
|
# |
public
|
enterNode(Node $node)
|
# |
Methods inherited from PhpParser\NodeVisitorAbstract |
---|
leaveNode(), afterTraverse() |
Properties | |||
---|---|---|---|
protected
|
callable
|
$filterCallback
|
# |
protected
|
Node[]
|
$foundNodes
|
# |