Bluz\Validator\Traits\Validator

Validator trait

Example of usage
<code>
use Bluz\Validator\Traits\Validator;
use Bluz\Validator\Validator as v;

class Row extends Db\Row {
use Validator;
function beforeSave()
{
$this->addValidator(
'login',
v::required()->latin()->length(3, 255)
);
}
}
</code>

Synopsis

trait Validator {
}

Members

protected

Methods

protected

public

History