Dhii - Validation Abstract
Common abstract functionality for validation.
Traits
ValidateCapableTrait- Functionality for validation. Throws aValidationFailedExceptionInterfaceif validation errors are detected.IsValidCapableTrait- Determines whether a subject is valid in a boolean way.GetValidationErrorsCapableCompositeTrait- Uses a list of child validators to produce a list of errors.ChildValidatorsAwareTrait- Awareness of child validators.ValidatorAwareTrait- Awareness of a validator.SpecAwareTrait- Awareness of a validation specification. Useful for validators geared to validate against a spec.ValidationSubjectAwareTrait- Awareness of a validation subject, i.e. what is being validated.ValidationErrorsAwareTrait- Awareness of a list of validation errors, i.e. reasons for validation failure.