class AbstractLengthRule extends AbstractMinMaxRule (View source)

Gathers [min|max|]Length rules.

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

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

No description

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

No description

getErrorMessageVariableName(string $parameterName)

No description

addValidationMethod(string $parameterName, $value)

No description

getValidationMethodName(string $parameterName)

No description

Details

abstract symbol()

Must return the comparison symbol.

final comparisonString()

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

Parameters

string $parameterName
$value
bool $itemType

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

Parameters

string $parameterName
$value
bool $itemType

getErrorMessageVariableName(string $parameterName)

Parameters

string $parameterName

protected addValidationMethod(string $parameterName, $value)

Parameters

string $parameterName
$value

protected getValidationMethodName(string $parameterName)

Parameters

string $parameterName