CollectsValidationErrors
Less than 1 minute
CollectsValidationErrors
Methods
addValidationError
Adds a validation error to the collection.
public addValidationError(string $field, PropertyException $e): voidParameters
| Parameter | Type | Description |
|---|---|---|
$field | string | |
$e | PropertyException |
getValidationErrors
Get the validation errors.
public getValidationErrors(): voidvalidate
Validates the current state of the model.
public validate(): boolThis method checks if the model's data meets the defined validation rules.
Generated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:26 +0000