AnyOf
class AnyOf implements Rule, ValidatorAwareRule
Properties
| protected array | $rules | The rules to match against. |
|
| protected Validator|null | $validator | The validator performing the validation. |
Methods
__construct(array $rules)
Sets the validation rules to match against.
bool
passes(string $attribute, mixed $value)
Determine if the validation rule passes.
array|string
message()
Get the validation error messages.
Details
at line 29
__construct(array $rules)
Sets the validation rules to match against.
at line 37
bool
passes(string $attribute, mixed $value)
Determine if the validation rule passes.
at line 61
array|string
message()
Get the validation error messages.
at line 75
ValidatorAwareRule
setValidator(Validator $validator)
Set the current validator.