Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParser\Chainable\IdentityTokenParser::__construct PHP Method

__construct() public method

public __construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\ChainableTokenParserInterface $decoratedTokenParser, Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser = null )
$decoratedTokenParser Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\ChainableTokenParserInterface
$parser Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface
    public function __construct(ChainableTokenParserInterface $decoratedTokenParser, ParserInterface $parser = null)
    {
        if (null !== $parser && $decoratedTokenParser instanceof ParserAwareInterface) {
            $decoratedTokenParser = $decoratedTokenParser->withParser($parser);
        }
        $this->decoratedTokenParser = $decoratedTokenParser;
        $this->tokenizer = new FunctionTokenizer();
    }