TypedSearchAttributes
in package
implements
IteratorAggregate, Countable
Tags
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
$collection read-only
private
SplObjectStorage|null
$collection
= null
Methods
count()
public
count() : int<0, max>
Return values
int<0, max>empty()
public
static empty() : self
Return values
selffromCollection()
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
selfget()
public
get(SearchAttributeKey $key) : mixed
Parameters
- $key : SearchAttributeKey
Tags
getIterator()
public
getIterator() : Traversable<SearchAttributeKey, mixed>
Return values
Traversable<SearchAttributeKey, mixed>hasKey()
public
hasKey(SearchAttributeKey $key) : bool
Parameters
- $key : SearchAttributeKey
Return values
booloffsetGet()
Get the value associated with the Search Attribute name.
public
offsetGet(non-empty-string $name) : mixed
Parameters
- $name : non-empty-string
withoutValue()
public
withoutValue(SearchAttributeKey|non-empty-string $key) : self
Parameters
- $key : SearchAttributeKey|non-empty-string
Return values
selfwithUntypedValue()
public
withUntypedValue(non-empty-string $name, mixed $value) : self
Parameters
- $name : non-empty-string
- $value : mixed
Tags
Return values
selfwithValue()
public
withValue(SearchAttributeKey $key, mixed $value) : self
Parameters
- $key : SearchAttributeKey
- $value : mixed
Return values
self__construct()
private
__construct([null|SplObjectStorage<SearchAttributeKey, mixed> $collection = null ]) : mixed
Parameters
- $collection : null|SplObjectStorage<SearchAttributeKey, mixed> = null
getKeyByName()
private
getKeyByName(non-empty-string $name) : SearchAttributeKey|null
Parameters
- $name : non-empty-string