public function Lexer::isA

Checks if given value is identical to the given token

Parameters

mixed $value:

integer $token:

Return value

boolean

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Lexer.php, line 164

Class

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

Namespace

Doctrine\Common

Code

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