function BaseConstraint::numErrors
1 call to BaseConstraint::numErrors()
- SchemaConstraint::check in vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ SchemaConstraint.php - invokes the validation of an element
File
-
vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ BaseConstraint.php, line 94
Class
- BaseConstraint
- A more basic constraint definition - used for the public interface to avoid exposing library internals.
Namespace
JsonSchema\ConstraintsCode
public function numErrors($errorContext = Validator::ERROR_ALL) {
if ($errorContext === Validator::ERROR_ALL) {
return count($this->errors);
}
return count($this->getErrors($errorContext));
}