class ChoiceRule extends AbstractRule (View source)

Methods

name()

No description

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

No description

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

No description

static 
getErrorMessageVariableName(string $parameterName)

No description

addValidationMethod(string $parameterName, array $choiceNames)

No description

getValidationMethodName(string $parameterName)

No description

Details

name()

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

protected addValidationMethod(string $parameterName, array $choiceNames)

Parameters

string $parameterName
array $choiceNames

protected getValidationMethodName(string $parameterName)

Parameters

string $parameterName