Token
in package
implements
ArrayAccess
FinalYes
Tags
Table of Contents
Interfaces
- ArrayAccess
Properties
- $position : int
- The position of the token in the input string
- $type : T|null
- The type of the token (identifier, numeric, string, input parameter, none)
- $value : V
- The string value of the token in the input string
Methods
- __construct() : mixed
- isA() : bool
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
Properties
$position
The position of the token in the input string
public
int
$position
Tags
$type
The type of the token (identifier, numeric, string, input parameter, none)
public
T|null
$type
Tags
$value
The string value of the token in the input string
public
V
$value
Tags
Methods
__construct()
public
__construct(V $value, T|null $type, int $position) : mixed
Parameters
- $value : V
- $type : T|null
- $position : int
isA()
public
isA(T ...$types) : bool
Parameters
- $types : T
Return values
booloffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Tags
Return values
booloffsetGet()
public
offsetGet(O $offset) : mixed
Parameters
- $offset : O
Tags
Attributes
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed