ValuesInterface
extends
Countable
in
Tags
Table of Contents
Methods
- getSerializationContext() : SerializationContext|null
- getValue() : mixed
- Get value by it's index.
- isEmpty() : bool
- Checks if any value present.
- setDataConverter() : void
- setSerializationContext() : void
- toPayloads() : Payloads
- Returns associated payloads.
- withSerializationContext() : static
Methods
getSerializationContext()
public
getSerializationContext() : SerializationContext|null
Return values
SerializationContext|nullgetValue()
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) : void
Parameters
- $converter : DataConverterInterface
setSerializationContext()
public
setSerializationContext(SerializationContext|null $context) : void
Parameters
- $context : SerializationContext|null
toPayloads()
Returns associated payloads.
public
toPayloads() : Payloads
Return values
PayloadswithSerializationContext()
public
withSerializationContext(SerializationContext|null $context) : static
Parameters
- $context : SerializationContext|null