GrumPHP\Parser\Php\Configurator\TraverserConfigurator::registerOptions PHP Method

registerOptions() public method

public registerOptions ( array $options )
$options array
    public function registerOptions(array $options)
    {
        $this->options = $options;
    }

Usage Example

Example #1
0
 /**
  * @param array         $parserOptions
  * @param ParserContext $context
  *
  * @return NodeTraverser
  * @throws \GrumPHP\Exception\RuntimeException
  */
 public function createForTaskContext(array $parserOptions, ParserContext $context)
 {
     $this->configurator->registerOptions($parserOptions);
     $this->configurator->registerContext($context);
     $traverser = new NodeTraverser();
     $this->configurator->configure($traverser);
     return $traverser;
 }
All Usage Examples Of GrumPHP\Parser\Php\Configurator\TraverserConfigurator::registerOptions