PHP Class Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParser\Chainable\TolerantFunctionTokenParser

Inheritance: extends AbstractChainableParserAwareParser, use trait Nelmio\Alice\IsAServiceTrait
Exibir arquivo Open project: nelmio/alice

Public Methods

Method Description
__construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\ChainableTokenParserInterface $functionTokenParser, Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser = null )
canParse ( Token $token ) : boolean
parse ( Token $token ) : FunctionCallValue | ListValue Handle cases like ' ' by trying to break down the token.
withParser ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser ) : self

Private Methods

Method Description
mergeValues ( array $values ) : NestedValue

Method Details

__construct() public method

public __construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\ChainableTokenParserInterface $functionTokenParser, Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser = null )
$functionTokenParser Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\ChainableTokenParserInterface
$parser Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface

canParse() public method

public canParse ( Token $token ) : boolean
$token Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Token
return boolean

parse() public method

public parse ( Token $token ) : FunctionCallValue | ListValue
$token Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Token
return Nelmio\Alice\Definition\Value\FunctionCallValue | Nelmio\Alice\Definition\Value\ListValue

withParser() public method

public withParser ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser ) : self
$parser Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface
return self