PropertyValidationException
Less than 1 minute
PropertyValidationException
Exception thrown when a property fails a validation rule in a model class.
class PropertyValidationException extends \Hazaar\Model\Exception\PropertyExceptionProperties
ruleName
The name of the validation rule that failed.
private string $ruleNameMethods
__construct
Constructs a new PropertyValidationException.
public __construct(string $class, string $propertyName, string $ruleName): voidParameters
| Parameter | Type | Description |
|---|---|---|
$class | string | the name of the class containing the property |
$propertyName | string | the name of the property that failed validation |
$ruleName | string | the name of the validation rule that failed |
getRuleName
Gets the name of the validation rule that failed.
public getRuleName(): stringGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000