Token
in package
FinalYes
Tags
Table of Contents
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
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