Méthode |
Description |
|
__construct ( integer $minimum = 1, integer | null $maximum = null, boolean $isAlways = false ) |
Construct a new cardinality. |
|
assertSingular ( ) |
Asserts that this cardinality is suitable for events that can only happen
once or not at all. |
|
isAlways ( ) : boolean |
Returns true if 'always' is enabled. |
|
isNever ( ) : boolean |
Returns true if this cardinality is 'never'. |
|
matches ( integer | boolean $count, integer $maximumCount ) : boolean |
Returns true if the supplied count matches this cardinality. |
|
maximum ( ) : integer | null |
Get the maximum. |
|
minimum ( ) : integer |
Get the minimum. |
|
setIsAlways ( boolean $isAlways ) |
Turn 'always' on or off. |
|