ObjectValidatorInterface
interface ObjectValidatorInterface implements ValidatorInterface (View source)
Contract for a validator
Methods
validate(mixed $value)
Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.
from
ValidatorInterface
array
getOptions()
Returns the options of this validator which can be specified in the constructor
from
ValidatorInterface
void
setValidatedInstancesContainer(SplObjectStorage $validatedInstancesContainer)
Allows to set a container to keep track of validated instances.
Details
Result
validate(mixed $value)
Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.
array
getOptions()
Returns the options of this validator which can be specified in the constructor
void
setValidatedInstancesContainer(SplObjectStorage $validatedInstancesContainer)
Allows to set a container to keep track of validated instances.