PhpSourceToken
class PhpSourceToken implements StringRepresentation, ArrayAccess, ArrayRepresentation (View source)
"Polyfill" of the PHP 8 PhpToken class
Methods
__construct($token, $index)
Token descriptor given by token_get_all()
string
__toString()
No description
array
getArrayCopy()
No description
number
getTokenIndex()
No description
string
getTokenName()
No description
integer
getTokenType()
No description
string
getTokenValue()
No description
integer
getTokenLine()
No description
boolean
is(int|string|array $kind)
No description
boolean
isIgnorable()
No description
offsetGet($offset)
No description
offsetExists($offset)
No description
offsetUnset($offset)
No description
offsetSet($offset, $value)
No description
Details
at line 30
__construct($token, $index)
Token descriptor given by token_get_all()