Bluz\Validator\Validator::assert PHP Method

assert() public method

Assert
public assert ( mixed $input ) : boolean
$input mixed
return boolean
    public function assert($input)
    {
        if (!$this->validate($input)) {
            throw new ValidatorException($this->getError() ?: '');
        }
        return true;
    }