public function enterNode(Node $node)
    {
        foreach ($this->searchNodes as $nodeClassName) {
            if ($node instanceof $nodeClassName) {
                $this->foundNodes[] = $node;
            }
        }

        return null;
    }
public function enterNode(Node $node)
    {
        foreach ($this->searchNodes as $nodeClassName) {
            if ($node instanceof $nodeClassName) {
                $this->foundNodes[] = $node;
            }
        }

        return null;
    }
public function enterNode ( Node $ node ) { foreach ( $ this -> searchNodes as $ nodeClassName ) { if ( $ node instanceof $ nodeClassName ) { $ this -> foundNodes [ ] = $ node ; } } return null ; }
Called when entering a node.

Return value semantics:
* null
=> $node stays as-is
* NodeTraverser::DONT_TRAVERSE_CHILDREN
=> Children of $node are not traversed. $node stays as-is
* NodeTraverser::STOP_TRAVERSAL
=> Traversal is aborted. $node stays as-is
* otherwise
=> $node is set to the return value

@param Node $node Node

@return null|int|Node Node
Called when entering a node .