ValidatorManager
class ValidatorManager implements ValidatorManagerInterface (View source)
Properties
| protected ValidatorInterface[] | $validators | 
Methods
Get the validator requirements in the form of an array keyed by it's respective error code.
Get a list of all validators.
Does a validator with this handle exist.
Is this mixed value valid based on the added validators.
Details
        
                            string[]
    getRequirementStrings()
        
    
    Get the validator requirements in the form of an array keyed by it's respective error code.
Example: [ self::E_TOO_SHORT => 'Must be at least 10 characters' ]
        
                            ValidatorInterface[]
    getValidators()
        
    
    Get a list of all validators.
        
                            bool
    hasValidator(string $handle)
        
    
    Does a validator with this handle exist.
        
                            
    setValidator(string $handle, ValidatorInterface $validator = null)
        
    
    Add a validator to the stack.
Validators are unique by handle, so adding a validator with the same handle as a validator in the stack replaces the old validator with the new one.
        
                            bool
    isValid(mixed $mixed, ArrayAccess $error = null)
        
    
    Is this mixed value valid based on the added validators.