Garden\Validation::isValid PHP Méthode

isValid() public méthode

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