Documentation

Token
in package

FinalYes
Tags
template
template

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
readonly

$type

The type of the token (identifier, numeric, string, input parameter, none)

public T|null $type
Tags
readonly

$value

The string value of the token in the input string

public V $value
Tags
readonly

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
bool

        
On this page

Search results