AnyOf
class AnyOf implements Rule, ValidatorAwareRule (View source)
Properties
| protected array | $rules | The rules to match against.  | 
                |
| protected Validator | $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.
                    string|array
                
                
                    message()
        
                                            
                
            Get the validation error messages.
                    $this
                
                
                
            Details
        
                            
    __construct(array $rules)
        
    
    Sets the validation rules to match against.
        
                            bool
    passes(string $attribute, mixed $value)
        
    
    Determine if the validation rule passes.
        
                            string|array
    message()
        
    
    Get the validation error messages.
        
                            $this
    setValidator(Validator $validator)
        
    
    Set the current validator.