This visitor can be used to find the first node satisfying some criterion determined by a filter callback.
CloneableInstantiable
Constants |
Methods |
public __construct(callable $filterCallback) |
public beforeTraverse(array $nodes) : ?array |
public enterNode(PhpParser |
public getFoundNode() : ?PhpParser Get found node satisfying the filter callback. Returns null if no node satisfies the filter callback.
|
Properties |
protected $filterCallback = NULL
|
protected ?PhpParser
|