PropertyEnumException
Less than 1 minute
PropertyEnumException
Exception thrown when a property value cannot be implicitly converted to the required type.
This exception is typically thrown by the Model class when attempting to set a property with a value type that is not supported or cannot be cast to the defined property type.
Properties
propertyType
private string $propertyTypeMethods
__construct
Constructor for the PropertyEnumException.
public __construct(string $class, string $propertyName, string $propertyType, ?string $propertyEnumValue): voidParameters
| Parameter | Type | Description |
|---|---|---|
$class | string | the name of the class where the exception occurred |
$propertyName | string | the name of the property that caused the exception |
$propertyType | string | the expected enum type of the property |
$propertyEnumValue | string | the invalid value that was provided for the enum |
getPropertyType
Get the expected type of the property.
public getPropertyType(): stringGenerated by Hazaar API Doc Generator on Wed, 07 Jan 2026 11:29:59 +0000