You are here

public function AbstractLexer::isA in Zircon Profile 8.0

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

Checks if given value is identical to the given token.

Parameters

mixed $value:

integer $token:

Return value

boolean

File

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

Class

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

Namespace

Doctrine\Common\Lexer

Code

public function isA($value, $token) {
  return $this
    ->getType($value) === $token;
}