Maslosoft Mangan API
Trait AllowEmpty
Use this trait to add validator allowEmpty
field.
Direct Known Users
Maslosoft\Mangan\Annotations\Validators\BooleanValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\CompareValidatorAnnotation
,
Maslosoft\Mangan\Annotations\Validators\UrlValidatorAnnotation
,
Maslosoft\Mangan\Validators\BuiltIn\Base\SizeValidator
,
Maslosoft\Mangan\Validators\BuiltIn\ClassValidator
,
Maslosoft\Mangan\Validators\BuiltIn\CompareValidator
,
Maslosoft\Mangan\Validators\BuiltIn\EmailValidator
,
Maslosoft\Mangan\Validators\BuiltIn\ImmutableValidator
,
Maslosoft\Mangan\Validators\BuiltIn\NumberValidator
,
Maslosoft\Mangan\Validators\BuiltIn\RangeValidator
,
Maslosoft\Mangan\Validators\BuiltIn\RegexValidator
,
Maslosoft\Mangan\Validators\BuiltIn\UniqueValidator
,
Maslosoft\Mangan\Annotations\Validators\CountValidatorAnnotation
,
Maslosoft\Mangan\Validators\BuiltIn\UrlValidator
,
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\UniqueValidatorAnnotation
Indirect Known Users
Maslosoft\Mangan\Validators\BuiltIn\CountValidator
,
Maslosoft\Mangan\Validators\BuiltIn\StringValidator
Author: Piotr Maselkowski
Located at Validators/Traits/AllowEmpty.php
Properties summary
public
boolean
|
$allowEmpty
whether the attribute value can be null or empty. Defaults to true, meaning that if the attribute is empty, it is considered valid. |
#
true
|