PHP Класс Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\SimpleParser

Наследование: implements Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface, use trait Nelmio\Alice\IsAServiceTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\LexerInterface $lexer, Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParserInterface $tokenParser )
parse ( string $value )

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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 parse ( string $value )
$value string