ValuesInterface
extends
Countable
in
Tags
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
boolsetDataConverter()
public
setDataConverter(DataConverterInterface $converter) : mixed
Parameters
- $converter : DataConverterInterface
toPayloads()
Returns associated payloads.
public
toPayloads() : Payloads