classOccurrences
final class Occurrences
Checks the minContains and maxContains constraints of the profile.
Methods§
public static function check(int $count, array<string, mixed> $schema, string $context): voidChecks a count; minContains defaults to 1 and maxContains to unbounded.
Parameters
$count | int | The number of occurrences |
$schema | array<string, mixed> | The constrained profile entry |
$context | string | The name used in the error message |
Throws
InvalidInputException When the bounds are not integers or the count lies outside themTest cases 2
Called from 2
Calls 2
- function-call
is_intline 27 - new InvalidInputException line 28
Test cases 10§
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 8
DefinitionReaderTestcallsDocumentReaderTestcallsLoaderTestcallsDocumentSchemaTestcallsSectionBlocksTestcallsReferenceTestcallsMarkdownDocumentTestcallsFormatterTestcalls