final class QueryState
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

A query's immutable fields, carried through the shared object memory.

Properties§

public array<string, Domain> $fields = []

Methods§

public function __construct(public array<string, Domain> $fields = [])

Parameters

$fieldsarray<string, Domain>
public function get(string $field): Domain

A field, or null when it has not been set.

Parameters

$fieldstring

Returns

Test cases 1
Called from 12
Calls 1
public function with(string $field, Domain $value): self

A new state with one field replaced.

Parameters

$fieldstring
$valueDomain

Returns

self
Test cases 11
Called from 9
Calls 1
public function items(string $field): list<Domain>

Parameters

$fieldstring

Returns

list<Domain> The ordered elements of a list field.
Test cases 1
Called from 14
Calls 1
public static function list(list<Domain> $values): Domain

Parameters

$valueslist<Domain>An ordered array without losing value domains.

Returns

Test cases 40
Called from 18
Calls 4
public function reject(string $reason): self

Adds an explicit gap which no subsequent call may erase.

Parameters

$reasonstring

Returns

self
Test cases 3
Called from 31
Calls 4
public static function from(ObjectTerm $object): self

The snapshot of an object, or an explicitly uninitialized query.

Parameters

$objectObjectTerm

Returns

self
Test cases 21
Called from 19
Calls 2
public function object(ObjectTerm $object): ObjectTerm

The updated object with its identity preserved for aliases.

Parameters

$objectObjectTerm

Returns

Test cases 1
Calls 2

Test cases 100§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 10
Other tests reaching this symbol 90

Relations§

Instantiated in 9
Static calls 36
Method calls 73
Type declarations 41