Maslosoft Mangan API
Class ValidatorMeta
ValidatorMeta
- Maslosoft\Mangan\Meta\BaseMeta uses Maslosoft\Addendum\Traits\MetaState (not available)
- Maslosoft\Mangan\Meta\ValidatorMeta
Methods summary
Methods inherited from Maslosoft\Mangan\Meta\BaseMeta
Properties summary
public
string
|
$proxy
Proxy class. This will use Mangan::validators configuration to init |
#
''
|
public
string
|
$class
Validator class. If empty, will try to get from proxy class.
This has priority over |
#
''
|
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. |