classRepeatDomain
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
$element | ValueDomain | |
$minimum | int | |
$maximum | int |
Throws
InvalidArgumentException When sampling bounds cannot form a repetitionTest cases 2
Calls 1
- new
InvalidArgumentExceptionline 22
public function choose(Closure(positive-int): int $choose): stringParameters
$choose | Closure(positive-int): int |
Returns
stringTest cases 1
RepeatDomainTest::testChooseRepeatsCompleteComponentscovers and calls
Calls 2
- function-call
maxline 32 - method-call ValueDomain::choose() line 35
public function match(string $value, int $offset = 0): list<int>Parameters
$value | string | |
$offset | int |
Returns
list<int>Test cases 1
RepeatDomainTest::testMatchRequiresProgressAndAllowsLongExplicitRunscovers and calls
Calls 3
- method-call ValueDomain::match() line 54
- function-call
array_valuesline 60 - function-call
array_uniqueline 60
Private surface 3§
Implementation details, listed for orientation only.
private ValueDomain $elementprivate int $minimumprivate int $maximumTest cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
RepeatDomainTest::testChooseRepeatsCompleteComponentscovers and callsRepeatDomainTest::testMatchRequiresProgressAndAllowsLongExplicitRunscovers and calls
Other tests reaching this symbol 7
MySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsGenerationContextTestcallsDefinitionFactoryTestcallsLexicalGrammarTestcallsSqliteProviderTestcalls