src/Parser/PhpClassParser.php
protected function traverse($content, array $nodeVisitors = []) {
        $nodes = $this->phpParser->parse($content);

        $traverser = new NodeTraverser;
        $traverser->addVisitor(new NameResolver());

        foreach ($nodeVisitors as $nodeVisitor) {
            $traverser->addVisitor($nodeVisitor);
        }

        $traverser->traverse($nodes);
    }
protected function traverse($content, array $nodeVisitors = []) {
        $nodes = $this->phpParser->parse($content);

        $traverser = new NodeTraverser;
        $traverser->addVisitor(new NameResolver());

        foreach ($nodeVisitors as $nodeVisitor) {
            $traverser->addVisitor($nodeVisitor);
        }

        $traverser->traverse($nodes);
    }
protected function traverse ( $ content , array $ nodeVisitors = [ ] ) { $ nodes = $ this -> phpParser -> parse ( $ content ) ; $ traverser = new NodeTraverser ; $ traverser -> addVisitor ( new NameResolver ( ) ) ; foreach ( $ nodeVisitors as $ nodeVisitor ) { $ traverser -> addVisitor ( $ nodeVisitor ) ; } $ traverser -> traverse ( $ nodes ) ; }
Traverse the parser nodes so we can extract the information

@param $content
@param array $nodeVisitors
@internal param bool $addInterface
Traverse the parser nodes so we can extract the information