class MaxOccursRule extends AbstractMinMaxRule (View source)

Constants

SYMBOL_MAX_INCLUSIVE

SYMBOL_MAX_EXCLUSIVE

SYMBOL_MIN_INCLUSIVE

SYMBOL_MIN_EXCLUSIVE

SYMBOL_STRICT

Methods

symbol()

Must return the comparison symbol.

comparisonString()

No description

name()

No description

testConditions(string $parameterName, $value, bool $itemType = false)

If maxOccurs is 'unbounded', no need to check occurrences count.

exceptionMessageOnTestFailure(string $parameterName, $value, bool $itemType = false)

No description

Details

symbol()

Must return the comparison symbol.

final comparisonString()

name()

final testConditions(string $parameterName, $value, bool $itemType = false)

If maxOccurs is 'unbounded', no need to check occurrences count.

Parameters

string $parameterName
$value
bool $itemType

final exceptionMessageOnTestFailure(string $parameterName, $value, bool $itemType = false)

Parameters

string $parameterName
$value
bool $itemType