Maslosoft Mangan API
Namespace Maslosoft\Mangan\Annotations\Validators
Classes summary
| BooleanValidatorAnnotation | BooleanValidator validates that the attribute value is either Maslosoft\Mangan\Annotations\Validators\BooleanValidatorAnnotation::$trueValue or Maslosoft\Mangan\Annotations\Validators\BooleanValidatorAnnotation::$falseValue. |
| CompareValidatorAnnotation | CompareValidator compares the specified attribute value with another value and validates if they are equal. |
| CountValidatorAnnotation | CountValidator validates that the attribute array elements count is of certain length. |
| EmailValidatorAnnotation | EmailValidator validates that the attribute value is a valid email address. |
| ImmutableValidatorAnnotation | Immutable Validator |
| InValidatorAnnotation | RangeValidator validates that the attribute value is among the list (specified via |
| LengthValidatorAnnotation | StringValidator validates that the attribute value is of certain length. |
| MatchValidatorAnnotation | RegularExpressionValidator validates that the attribute value matches to the specified pattern regular expression.
You may invert the validation logic with help of the |
| MethodValidatorAnnotation | Method Validator does validation by calling model method. |
| NumericalValidatorAnnotation | Validator validates that the attribute value is a number. |
| RequiredValidatorAnnotation | RequiredValidator validates that the specified attribute does not have null or empty value. |
| SafeValidatorAnnotation | Safe validator marks the associated attributes to be safe for massive assignments.
This in fact is same as SafeAnnotation.
Could be used as simply as |
| UniqueValidatorAnnotation | UniqueValidator |
| UnsafeValidatorAnnotation | UnsafeValidator marks the associated attributes to be unsafe so that they cannot be massively assigned. |
| UrlValidatorAnnotation | UrlValidator validates that the attribute value is a valid http or https URL. |
| ValidatorAnnotation | Base class for validator annotations |