class AbstractSetOfValuesRule extends AbstractRule (View source)

Methods

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

No description

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

No description

static 
getErrorMessageVariableName(string $parameterName)

No description

static 
getParameterPassedValue(string $parameterName)

No description

mustApplyRuleOnAttribute()

Must check the attribute validity according to the current rule.

addValidationMethod(string $parameterName, $value)

No description

getValidationMethodName(string $parameterName)

No description

Details

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

Parameters

string $parameterName
$value
bool $itemType

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

Parameters

string $parameterName
$value
bool $itemType

static getErrorMessageVariableName(string $parameterName)

Parameters

string $parameterName

static getParameterPassedValue(string $parameterName)

Parameters

string $parameterName

abstract protected mustApplyRuleOnAttribute()

Must check the attribute validity according to the current rule.

protected addValidationMethod(string $parameterName, $value)

Parameters

string $parameterName
$value

protected getValidationMethodName(string $parameterName)

Parameters

string $parameterName