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): void

Checks a count; minContains defaults to 1 and maxContains to unbounded.

Parameters

$countintThe number of occurrences
$schemaarray<string, mixed>The constrained profile entry
$contextstringThe name used in the error message

Throws

InvalidInputException When the bounds are not integers or the count lies outside them
Test cases 2
Called from 2
Calls 2

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

Relations§

Static calls 2