class Twig_Token

Represents a Token.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_Token

File

drupal/core/vendor/twig/twig/lib/Twig/Token.php, line 18

View source

Members

Namesort descending Modifiers Type Description Overrides
Twig_Token::$lineno protected property
Twig_Token::$type protected property
Twig_Token::$value protected property
Twig_Token::BLOCK_END_TYPE constant
Twig_Token::BLOCK_START_TYPE constant
Twig_Token::EOF_TYPE constant
Twig_Token::getLine public function Gets the line.
Twig_Token::getType public function Gets the token type.
Twig_Token::getValue public function Gets the token value.
Twig_Token::INTERPOLATION_END_TYPE constant
Twig_Token::INTERPOLATION_START_TYPE constant
Twig_Token::NAME_TYPE constant
Twig_Token::NUMBER_TYPE constant
Twig_Token::OPERATOR_TYPE constant
Twig_Token::PUNCTUATION_TYPE constant
Twig_Token::STRING_TYPE constant
Twig_Token::test public function Tests the current token for a type and/or a value.
Twig_Token::TEXT_TYPE constant
Twig_Token::typeToEnglish public static function Returns the english representation of a given type.
Twig_Token::typeToString public static function Returns the constant representation (internal) of a given type.
Twig_Token::VAR_END_TYPE constant
Twig_Token::VAR_START_TYPE constant
Twig_Token::__construct public function Constructor.
Twig_Token::__toString public function Returns a string representation of the token.