RuleInterface
interface RuleInterface
Rule interface.
Methods
bool
validateWhenEmpty()
Returns TRUE if the rule should be executed when the input is empty and FALSE if not.
bool
validate(mixed $value, array $input)
Returns TRUE if the rule succeeds and FALSE if not.
string
getErrorMessage(string $field)
Returns an error message.
Details
at line 20
bool
validateWhenEmpty()
Returns TRUE if the rule should be executed when the input is empty and FALSE if not.
at line 29
bool
validate(mixed $value, array $input)
Returns TRUE if the rule succeeds and FALSE if not.
at line 37
string
getErrorMessage(string $field)
Returns an error message.