PropertyValueException
Less than 1 minute
PropertyValueException
Exception thrown when a property value cannot be implicitly converted to the required type.
class PropertyValueException extends \Hazaar\Model\Exception\PropertyExceptionThis 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
The expected type of the property.
private string $propertyTypeMethods
__construct
Constructs a new PropertyValueException.
public __construct(string $class, string $propertyName, string $propertyType, ?string $requiredType): 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 type of the value that was provided |
$requiredType | string | the required type for the property, if any |
getPropertyType
Get the expected type of the property.
public getPropertyType(): stringGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000