Documentation

ValuesInterface extends Countable

Tags
psalm-import-type

TypeEnum from Type

Table of Contents

Methods

getValue()  : mixed
Get value by it's index.
isEmpty()  : bool
Checks if any value present.
setDataConverter()  : mixed
toPayloads()  : Payloads
Returns associated payloads.

Methods

getValue()

Get value by it's index.

public getValue(int $index, string|ReflectionClass|ReflectionType|Type|null $type) : mixed

Returns null if there are no values and $type has null value like null, Type::TYPE_VOID or Type::TYPE_NULL.

Parameters
$index : int
$type : string|ReflectionClass|ReflectionType|Type|null

isEmpty()

Checks if any value present.

public isEmpty() : bool
Return values
bool

toPayloads()

Returns associated payloads.

public toPayloads() : Payloads
Return values
Payloads

        
On this page

Search results