Documentation

TypedSearchAttributes
in package
implements IteratorAggregate, Countable

Tags
implements

\IteratorAggregate<SearchAttributeKey, mixed>

Table of Contents

Interfaces

IteratorAggregate
Countable

Properties

$collection  : SplObjectStorage|null

Methods

count()  : int<0, max>
empty()  : self
fromCollection()  : self
Create a new instance from the provided collection of untyped Search Attributes.
get()  : mixed
getIterator()  : Traversable<SearchAttributeKey, mixed>
hasKey()  : bool
offsetGet()  : mixed
Get the value associated with the Search Attribute name.
withoutValue()  : self
withUntypedValue()  : self
withValue()  : self
__construct()  : mixed
getKeyByName()  : SearchAttributeKey|null

Properties

Methods

fromCollection()

Create a new instance from the provided collection of untyped Search Attributes.

public static fromCollection(array<non-empty-string, mixed> $array) : self
Parameters
$array : array<non-empty-string, mixed>
Return values
self

offsetGet()

Get the value associated with the Search Attribute name.

public offsetGet(non-empty-string $name) : mixed
Parameters
$name : non-empty-string

withUntypedValue()

public withUntypedValue(non-empty-string $name, mixed $value) : self
Parameters
$name : non-empty-string
$value : mixed
Tags
throws
InvalidArgumentException

If the value type is not supported.

Return values
self

        
On this page

Search results