CloneableInstantiable
Methods
public find( $nodes, callable $filter) : array
 
Find all nodes satisfying a filter callback.

  • return Node[] Found nodes satisfying the filter callback
public findFirst( $nodes, callable $filter)
 
Find first node satisfying a filter callback.

  • return null|\Node Found node (or null if none found)
public findFirstInstanceOf( $nodes, string $class)
 
Find first node that is an instance of a certain class.

  • return null|\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.

  • return Node[] Found nodes (all instances of $class)
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only