Bluz\Validator\Validator::assert PHP Метод

assert() публичный Метод

Assert
public assert ( mixed $input ) : boolean
$input mixed
Результат boolean
    public function assert($input)
    {
        if (!$this->validate($input)) {
            throw new ValidatorException($this->getError() ?: '');
        }
        return true;
    }