public function AbstractLexer::isNextToken in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_annotation_discovery/lib/Doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php \Doctrine\Common\Lexer\AbstractLexer::isNextToken()
Checks whether a given token matches the current lookahead.
Parameters
integer|string $token:
Return value
boolean
File
- modules/
providers/ service_container_annotation_discovery/ lib/ Doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php, line 107
Class
- AbstractLexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common\LexerCode
public function isNextToken($token) {
return null !== $this->lookahead && $this->lookahead['type'] === $token;
}