PHP Class GrumPHP\Parser\Php\Factory\TraverserFactory

Show file Open project: phpro/grumphp Class Usage Examples

Public Methods

Method Description
__construct ( TraverserConfigurator $configurator ) TraverserFactory constructor.
createForTaskContext ( array $parserOptions, ParserContext $context ) : NodeTraverser

Method Details

__construct() public method

TraverserFactory constructor.
public __construct ( TraverserConfigurator $configurator )
$configurator GrumPHP\Parser\Php\Configurator\TraverserConfigurator

createForTaskContext() public method

public createForTaskContext ( array $parserOptions, ParserContext $context ) : NodeTraverser
$parserOptions array
$context GrumPHP\Parser\Php\Context\ParserContext
return PhpParser\NodeTraverser