CollectsValidationErrors
Less than 1 minute
CollectsValidationErrors
interface CollectsValidationErrorsMethods
addValidationError
Adds a validation error to the collection.
public addValidationError(string $field, PropertyException $e): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$field | string | |
$e | Hazaar\Model\Exception\PropertyException |
getValidationErrors
Gets the validation errors.
public getValidationErrors(): arrayReturns: array
validate
Validates the current state of the model.
public validate(): boolReturns: bool
This method checks if the model's data meets the defined validation rules.
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000