ERROR
ERROR
An abstract class that implements most of ValidatorInterface.
The only abstract method in the class is validate()
$model : \Charcoal\Validator\ValidatableInterface
$results : array<mixed,\Charcoal\Validator\ValidatorResult>
__construct(\Charcoal\Validator\ValidatableInterface $model)
\Charcoal\Validator\ValidatableInterface | $model | The object to validate. |
error(string $msg, string|null $ident = null) : \Charcoal\Validator\ValidatorInterface
string | $msg | The error message. |
string|null | $ident | Optional result ident. |
warning(string $msg, string|null $ident = null) : \Charcoal\Validator\ValidatorInterface
string | $msg | The warning message. |
string|null | $ident | Optional result ident. |
notice(string $msg, string|null $ident = null) : \Charcoal\Validator\ValidatorInterface
string | $msg | The notice message. |
string|null | $ident | Optional result ident. |
log(string $level, string $msg, string|null $ident = null) : \Charcoal\Validator\ValidatorInterface
string | $level | The validation level. |
string | $msg | The validation message. |
string|null | $ident | Optional result ident. |
addResult(array|\Charcoal\Validator\ValidatorResult $result) : \Charcoal\Validator\AbstractValidator
array|\Charcoal\Validator\ValidatorResult | $result | The result object or array. |
If result is not an array or object.
Chainable
merge(\Charcoal\Validator\ValidatorInterface $v, string $ident_prefix = null) : \Charcoal\Validator\ValidatorInterface
\Charcoal\Validator\ValidatorInterface | $v | The validator to merge. |
string | $ident_prefix | Optional identigfier prefix. |
Chainable