NodeTraverserInterface.php 462 B

123456789101112131415161718192021
  1. <?php
  2. interface PHPParser_NodeTraverserInterface
  3. {
  4. /**
  5. * Adds a visitor.
  6. *
  7. * @param PHPParser_NodeVisitor $visitor Visitor to add
  8. */
  9. function addVisitor(PHPParser_NodeVisitor $visitor);
  10. /**
  11. * Traverses an array of nodes using the registered visitors.
  12. *
  13. * @param PHPParser_Node[] $nodes Array of nodes
  14. *
  15. * @return PHPParser_Node[] Traversed array of nodes
  16. */
  17. function traverse(array $nodes);
  18. }