[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/twig/twig/src/ -> Token.php (summary)

(no description)

File Size: 215 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Token:: (8 methods):
  __construct()
  __toString()
  test()
  getLine()
  getType()
  getValue()
  typeToString()
  typeToEnglish()


Class: Token  - X-Ref

Represents a Token.

__construct($type, $value, $lineno)   X-Ref

param: int    $type   The type of the token
param: string $value  The token value
param: int    $lineno The line position in the source

__toString()   X-Ref
No description

test($type, $values = null)   X-Ref
Tests the current token for a type and/or a value.

Parameters may be:
* just type
* type and value (or array of possible values)
* just value (or array of possible values) (NAME_TYPE is used as type)

param: array|string|int  $type   The type to test
param: array|string|null $values The token value
return: bool

getLine()   X-Ref

return: int

getType()   X-Ref

return: int

getValue()   X-Ref

return: string

typeToString($type, $short = false)   X-Ref
Returns the constant representation (internal) of a given type.

param: int  $type  The type as an integer
param: bool $short Whether to return a short representation or not
return: string The string representation

typeToEnglish($type)   X-Ref
Returns the English representation of a given type.

param: int $type The type as an integer
return: string The string representation



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1