Temporal Docs PHP SDK API Version 2.20 (latest release) Release notes

Documentation

Header extends EncodedCollection
in package
implements HeaderInterface

FinalYes

Assoc collection of typed values.

Table of Contents

Interfaces

HeaderInterface

Properties

$converter  : DataConverterInterface|null
$effectiveConverter  : DataConverterInterface|null
$serializationContext  : SerializationContext|null

Methods

__clone()  : mixed
count()  : int
empty()  : static
fromPayloadCollection()  : static
fromValues()  : static
getDataConverter()  : DataConverterInterface|null
getIterator()  : Traversable
getSerializationContext()  : SerializationContext|null
getValue()  : mixed
getValues()  : array<string|int, mixed>
isEmpty()  : bool
setDataConverter()  : void
setSerializationContext()  : void
toPayloadArray()  : array<string|int, Payload>
withSerializationContext()  : static
withValue()  : static
converter()  : DataConverterInterface

Properties

Methods

getValue()

public getValue(string|int $name[, Type|TypeEnum|mixed $type = null ]) : mixed
Parameters
$name : string|int
$type : Type|TypeEnum|mixed = 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
On this page

Search results