php-parser/lib/PHPParser/NodeTraverserInterface.php

22 lines
462 B
PHP
Raw Normal View History

2013-05-16 15:43:24 +02:00
<?php
interface PHPParser_NodeTraverserInterface
{
/**
* Adds a visitor.
*
* @param PHPParser_NodeVisitor $visitor Visitor to add
*/
function addVisitor(PHPParser_NodeVisitor $visitor);
/**
* Traverses an array of nodes using the registered visitors.
*
* @param PHPParser_Node[] $nodes Array of nodes
*
* @return PHPParser_Node[] Traversed array of nodes
*/
function traverse(array $nodes);
}