Maslosoft Mangan API
Class InValidatorAnnotation
RangeValidator validates that the attribute value is among the list (specified via Maslosoft\Mangan\Annotations\Validators\InValidatorAnnotation::$range
).
You may invert the validation logic with help of the Maslosoft\Mangan\Annotations\Validators\InValidatorAnnotation::$not
property (available since 1.1.5).
- Maslosoft\Addendum\Collections\MetaAnnotation
- Maslosoft\Mangan\Meta\ManganAnnotation
- Maslosoft\Mangan\Meta\ManganPropertyAnnotation
- Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
- Maslosoft\Mangan\Annotations\Validators\InValidatorAnnotation uses Maslosoft\Mangan\Validators\Traits\AllowEmpty, Maslosoft\Mangan\Validators\Traits\Strict
Package: system\validators
Author: Qiang Xue qiang.xue@gmail.com
Version: $Id$
Since: 1.0
Located at Annotations/Validators/InValidatorAnnotation.php
Methods inherited from Maslosoft\Mangan\Meta\ManganPropertyAnnotation
Methods inherited from Maslosoft\Mangan\Meta\ManganAnnotation
Constants summary
Constants inherited from Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
Properties summary
public
array
|
$range
list of valid values that the attribute value should be among |
#
NULL
|
public
boolean
|
$not
whether to invert the validation logic. Defaults to false. If set to true,
the attribute value should NOT be among the list of values defined via |
#
false
|
Properties inherited from Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
$class
,
$except
,
$message
,
$on
,
$proxy
,
$safe
,
$skipOnError
,
$value