public find( $nodes, callable $filter) : array

Find all nodes satisfying a filter callback.

public findFirst( $nodes, callable $filter)

Find first node satisfying a filter callback.

public findFirstInstanceOf( $nodes, string $class)

Find first node that is an instance of a certain class.

  • return null|PhpParser\Node Found node, which is an instance of $class (or null if none found)
public findInstanceOf( $nodes, string $class) : array

Find all nodes that are instances of a certain class.

© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only