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 Wed, 07 Jan 2026 11:29:59 +0000