extends |
NodeVisitorAbstract |
---|
This visitor can be used to find the first node satisfying some criterion determined by a filter callback.
Methods | ||
---|---|---|
public
|
__construct(callable $filterCallback)
|
# |
public
|
getFoundNode(): null|Node
|
# |
public
|
beforeTraverse(array $nodes): ?array
|
# |
public
|
enterNode(Node $node)
|
# |
Methods inherited from PhpParser\NodeVisitorAbstract |
---|
leaveNode(), afterTraverse() |
Constants inherited from PhpParser\NodeVisitor |
---|
|
Properties | |||
---|---|---|---|
protected
|
callable
|
$filterCallback
|
# |
protected
|
null|Node
|
$foundNode
|
# |