\Charcoal\ValidatorValidatorInterface

A validator is attached to a model that implements ValidatableInterface and validate an object.

Summary

Methods
Constants
error()
warning()
notice()
log()
results()
validate()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

log()

log(string  $level, string  $msg) : \Charcoal\Validator\ValidatorInterface

Parameters

string $level

The log level ('error', 'warning' or 'notice').

string $msg

The message.

Returns

\Charcoal\Validator\ValidatorInterface

Chainable

results()

results() : array

Returns

array

validate()

validate() : boolean

Returns

boolean