Validator
in
Table of Contents
Methods
- getInstance() : Validator
- Returnst the instances of the validator, instantiates a new one if there isn't one already.
- validate() : ResultCollection|bool
- Validates a DomainObject.
Methods
getInstance()
Returnst the instances of the validator, instantiates a new one if there isn't one already.
public
static getInstance() : Validator
Return values
Validatorvalidate()
Validates a DomainObject.
public
validate(Validatable $object) : ResultCollection|bool
Parameters
- $object : Validatable
Return values
ResultCollection|bool —returns true if validations passed a ResultCollection otherwise