PHP Class GrumPHP\Parser\Php\Configurator\TraverserConfigurator

Exibir arquivo Open project: phpro/grumphp Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) TraverserConfigurator constructor.
configure ( PhpParser\NodeTraverserInterface $traverser )
registerContext ( ParserContext $context )
registerOptions ( array $options )
registerStandardEnabledVisitor ( $alias, array $visitorOptions = null )
registerVisitorId ( string $alias, string $visitorId )

Private Methods

Method Description
guardContextIsRegistered ( )
guardTaskHasVisitors ( )
loadEnabledVisitorsForCurrentOptions ( ) : array

Method Details

__construct() public method

TraverserConfigurator constructor.
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface

configure() public method

public configure ( PhpParser\NodeTraverserInterface $traverser )
$traverser PhpParser\NodeTraverserInterface

registerContext() public method

public registerContext ( ParserContext $context )
$context GrumPHP\Parser\Php\Context\ParserContext

registerOptions() public method

public registerOptions ( array $options )
$options array

registerStandardEnabledVisitor() public method

public registerStandardEnabledVisitor ( $alias, array $visitorOptions = null )
$alias
$visitorOptions array

registerVisitorId() public method

public registerVisitorId ( string $alias, string $visitorId )
$alias string
$visitorId string