Garden\Validation::isValid PHP Method

isValid() public method

Check whether or not the validation is free of errors.
public isValid ( ) : boolean
return boolean Returns true if there are no errors, false otherwise.
    public function isValid()
    {
        return count($this->errors) === 0;
    }