final class ChoiceDomain
    implements ValueDomain

Declares alternative constructive spelling domains, such as quoted and prefixed binary values.

Methods§

public function __construct(ValueDomain $first, ValueDomain ...$others)

Requires at least one complete domain rather than a finite sample of an unknown set.

Parameters

Test cases 2
Calls 1
public function choose(Closure(positive-int): int $choose): string

Parameters

$chooseClosure(positive-int): int

Returns

string
Test cases 1
Calls 1
public function match(string $value, int $offset = 0): list<int>

Parameters

$valuestring
$offsetint

Returns

list<int>
Test cases 1
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private non-empty-list<ValueDomain> $domains

Test cases 23§

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

Dedicated tests 2
Other tests reaching this symbol 21

Relations§

Instantiated in 20