Maslosoft Mangan API
Class ValidatorAnnotation
Base class for validator annotations
- Maslosoft\Addendum\Collections\MetaAnnotation
- Maslosoft\Mangan\Meta\ManganAnnotation
- Maslosoft\Mangan\Meta\ManganPropertyAnnotation
- Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
Direct known subclasses
Maslosoft\Mangan\Annotations\Validators\BooleanValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\CompareValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\UniqueValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\UnsafeValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\UrlValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\CountValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\EmailValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\ImmutableValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\InValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\LengthValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\MatchValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\NumericalValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\RequiredValidatorAnnotation
Indirect known subclasses
Author: Piotr
Located at Annotations/Validators/ValidatorAnnotation.php
Methods inherited from Maslosoft\Mangan\Meta\ManganPropertyAnnotation
Methods inherited from Maslosoft\Mangan\Meta\ManganAnnotation
Properties summary
public
string
|
$message
the user-defined error message. Different validators may define various placeholders in the message that are to be replaced with actual values. All validators recognize "{attribute}" placeholder, which will be replaced with the label of the attribute. |
|
public
boolean
|
$skipOnError
whether this validation rule should be skipped when there is already a validation error for the current attribute. Defaults to false. |
#
false
|
public
array
|
$on
list of scenarios that the validator should be applied. Each array value refers to a scenario name with the same name as its array key. |
|
public
boolean
|
$safe
whether attributes listed with this validator should be considered safe for massive assignment. Defaults to true. |
#
true
|
public
array
|
$except
list of scenarios that the validator should not be applied to. Each array value refers to a scenario name with the same name as its array key. |
|
public
string
|
$proxy
Validator proxy class |
#
''
|
public
string
|
$class
|
#
''
|
public
string
|
$value
|
#
''
|