PHP Class Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\SimpleParser

Inheritance: implements Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface, use trait Nelmio\Alice\IsAServiceTrait
Show file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\LexerInterface $lexer, Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParserInterface $tokenParser )
parse ( string $value )

Private Methods

Method Description
parseToken ( array $parsedTokens, Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParserInterface $parser, Token $token ) : array Parses the given token. If the value returned is a ListValue, its values will be merged to the list of parsed tokens instead of adding the value itself. Another check is done to ensure that successive string tokens are merged.

Method Details

__construct() public method

public __construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\LexerInterface $lexer, Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParserInterface $tokenParser )
$lexer Nelmio\Alice\FixtureBuilder\ExpressionLanguage\LexerInterface
$tokenParser Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParserInterface

parse() public method

public parse ( string $value )
$value string