Méthode |
Description |
|
__construct ( ) |
Construct a new cardinality verifier. |
|
always ( ) |
Requires that the next verification matches for all possible items. |
|
atLeast ( integer $minimum ) |
Requires that the next verification matches a number of times greater
than or equal to $minimum. |
|
atMost ( integer $maximum ) |
Requires that the next verification matches a number of times less than
or equal to $maximum. |
|
between ( integer $minimum, integer | null $maximum ) |
Requires that the next verification matches a number of times greater
than or equal to $minimum, and less than or equal to $maximum. |
|
cardinality ( ) : Cardinality |
Get the cardinality. |
|
never ( ) |
Requires that the next verification never matches. |
|
once ( ) |
Requires that the next verification matches only once. |
|
resetCardinality ( ) : Cardinality |
Reset the cardinality to its default value. |
|
thrice ( ) |
Requires that the next verification matches exactly three times. |
|
times ( integer $times ) |
Requires that the next verification matches an exact number of times. |
|
twice ( ) |
Requires that the next verification matches exactly two times. |
|