\Charcoal\ModelModelValidator

An abstract class that implements most of ValidatorInterface.

The only abstract method in the class is validate()

Summary

Methods
Properties
Constants
__construct()
error()
warning()
notice()
log()
addResult()
results()
errorResults()
warningResults()
noticeResults()
merge()
validate()
No public properties found
ERROR
WARNING
NOTICE
No protected methods found
$model
N/A
No private methods found
$results
N/A

Constants

ERROR

ERROR

WARNING

WARNING

NOTICE

NOTICE

Properties

Methods

error()

error(string  $msg, string|null  $ident = null) : \Charcoal\Validator\ValidatorInterface

Parameters

string $msg

The error message.

string|null $ident

Optional result ident.

Returns

\Charcoal\Validator\ValidatorInterface

warning()

warning(string  $msg, string|null  $ident = null) : \Charcoal\Validator\ValidatorInterface

Parameters

string $msg

The warning message.

string|null $ident

Optional result ident.

Returns

\Charcoal\Validator\ValidatorInterface

notice()

notice(string  $msg, string|null  $ident = null) : \Charcoal\Validator\ValidatorInterface

Parameters

string $msg

The notice message.

string|null $ident

Optional result ident.

Returns

\Charcoal\Validator\ValidatorInterface

log()

log(string  $level, string  $msg, string|null  $ident = null) : \Charcoal\Validator\ValidatorInterface

Parameters

string $level

The validation level.

string $msg

The validation message.

string|null $ident

Optional result ident.

Returns

\Charcoal\Validator\ValidatorInterface

results()

results() : array

Returns

array

errorResults()

errorResults() : array

Returns

array

warningResults()

warningResults() : array

Returns

array

noticeResults()

noticeResults() : array

Returns

array

validate()

validate() : boolean

Returns

boolean