You are here

abstract protected function AbstractLexer::getType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php \Doctrine\Common\Lexer\AbstractLexer::getType()

Retrieve token type. Also processes the token value if necessary.

Parameters

string $value:

Return value

integer

2 calls to AbstractLexer::getType()
AbstractLexer::isA in vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php
Checks if given value is identical to the given token.
AbstractLexer::scan in vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php
Scans the input string for tokens.
2 methods override AbstractLexer::getType()
DocLexer::getType in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php
Retrieve token type. Also processes the token value if necessary.
EmailLexer::getType in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php
Retrieve token type. Also processes the token value if necessary.

File

vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php, line 326

Class

AbstractLexer
Base class for writing simple lexers, i.e. for creating small DSLs.

Namespace

Doctrine\Common\Lexer

Code

protected abstract function getType(&$value);