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

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

Méthodes publiques

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

Private Methods

Méthode 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 méthode

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 méthode

public parse ( string $value )
$value string