CollectsValidationErrors
Less than 1 minute
CollectsValidationErrors
interface CollectsValidationErrorsMethods
addValidationError
Adds a validation error to the collection.
public addValidationError(string $field, PropertyException $e): voidParameters
| Parameter | Type | Description |
|---|---|---|
$field | string | |
$e | PropertyException |
getValidationErrors
Gets 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 Tue, 21 Apr 2026 04:00:23 +0000