class Token
Represents a Token.
EOF_TYPE | |
NAME_TYPE | |
NUMBER_TYPE | |
STRING_TYPE | |
OPERATOR_TYPE | |
PUNCTUATION_TYPE |
$value | ||
$type | ||
$cursor |
__construct(int $type, string $value, int $cursor) Constructor. | ||
string | __toString() Returns a string representation of the token. | |
bool | test(array|int $type, string|null $value = null) Tests the current token for a type and/or a value. |
Constructor.
Returns a string representation of the token.
Tests the current token for a type and/or a value.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/ExpressionLanguage/Token.html