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

Inheritance: implements Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\ChainableTokenParserInterface, implements Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
Mostra file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\ChainableTokenParserInterface $decoratedTokenParser, Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser = null )
canParse ( Token $token ) : boolean
parse ( Token $token ) Parses expressions such as '<(something)>'.
withParser ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser ) : self

Method Details

__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

canParse() public method

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

parse() public method

public parse ( Token $token )
$token Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Token

withParser() public method

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