HumHub Documentation (unofficial)

Token
in package
implements ArrayAccess

FinalYes
Tags
template

T of UnitEnum|string|int

template

V of string|int

implements

ArrayAccess<string,mixed>

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
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

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Tags
deprecated

Use the value, type or position property instead

Return values
bool

offsetGet()

public offsetGet(O $offset) : mixed
Parameters
$offset : O
Tags
deprecated

Use the value, type or position property instead

psalm-return

( O is 'value' ? V : ( O is 'type' ? T|null : ( O is 'position' ? int : mixed ) ) )

template

O of array-key

Attributes
#[ReturnTypeWillChange]

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed
Tags
deprecated

no replacement planned

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed
Tags
deprecated

no replacement planned


        
On this page

Search results