final class RepeatDomain
    implements ValueDomain

Repeats complete compound components, with a bounded sampling count.

Methods§

public function __construct(
    private ValueDomain $element,
    private int $minimum,
    private int $maximum,
)

Parameters

$elementValueDomain
$minimumint
$maximumint

Throws

InvalidArgumentException When sampling bounds cannot form a repetition
Test cases 2
Calls 1
  • new InvalidArgumentException line 22
public function choose(Closure(positive-int): int $choose): string

Parameters

$chooseClosure(positive-int): int

Returns

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

Parameters

$valuestring
$offsetint

Returns

list<int>
Test cases 1
Calls 3

Private surface 3§

Implementation details, listed for orientation only.

private ValueDomain $element
private int $minimum
private int $maximum

Test cases 9§

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 7

Relations§

Instantiated in 1