Documentation

EncodedCollection
in package
implements IteratorAggregate, Countable

Assoc collection of typed values.

Tags
psalm-type

TKey = array-key

psalm-type

TValue = mixed

psalm-type

TPayloadsCollection = \Traversable&\ArrayAccess<TKey, TValue>&\Countable

implements

\IteratorAggregate<TKey, TValue>

Table of Contents

Interfaces

IteratorAggregate
Countable

Properties

$converter  : DataConverterInterface|null
$payloads  : TPayloadsCollection|null
$values  : array<string|int, mixed>

Methods

__clone()  : mixed
count()  : int
empty()  : static
fromPayloadCollection()  : static
fromValues()  : static
getIterator()  : Traversable
getValue()  : mixed
getValues()  : array<string|int, mixed>
isEmpty()  : bool
setDataConverter()  : void
toPayloadArray()  : array<string|int, Payload>
withValue()  : static
__construct()  : mixed
Cannot be constructed directly.

Properties

Methods

getValue()

public getValue(string|int $name[, Type|string|null $type = null ]) : mixed
Parameters
$name : string|int
$type : Type|string|null = null

getValues()

public getValues() : array<string|int, mixed>
Return values
array<string|int, mixed>

toPayloadArray()

public toPayloadArray() : array<string|int, Payload>
Return values
array<string|int, Payload>

withValue()

public withValue(TKey $name, TValue $value) : static
Parameters
$name : TKey
$value : TValue
Return values
static

__construct()

Cannot be constructed directly.

private final __construct() : mixed

        
On this page

Search results