Class Validation
Validates data against a set of rules.
- ICanBoogie\Validate\Validation implements ICanBoogie\Validate\ValidatorOptions
Methods summary
public
|
|
public
|
|
public
|
#
validates_with( string $attribute, string $class_or_alias, array $params )
Defines validation for an attribute. |
public
|
|
protected
|
#
validate_attribute( string $attribute, array $validators,
Validates an attribute. |
public
|
|
protected
|
|
protected
boolean
|
|
protected
boolean
|
#
should_stop(
Whether validation for an attribute should stop. |
protected
array
|
|
protected
|
|
protected
|
|
protected
|
Constants summary
string |
SERIALIZED_STOP_ON_ERROR_SUFFIX
|
#
'!'
|
string |
SERIALIZED_VALIDATION_SEPARATOR
|
#
'|'
|
string |
SERIALIZED_ALIAS_SEPARATOR
|
#
':'
|
string |
SERIALIZED_PARAM_SEPARATOR
|
#
';'
|
Constants inherited from ICanBoogie\Validate\ValidatorOptions
OPTION_IF
,
OPTION_MESSAGE
,
OPTION_STOP_ON_ERROR
,
OPTION_UNLESS
Properties summary
protected
array
|
$validations
|
#
[]
|