Format
Less than 1 minute
Format
class Format extends \Hazaar\Model\Attribute\BaseExtends: Hazaar\Model\Attribute\Base
Properties
format
The format string to apply to the property value.
private string $formatType: string
Methods
__construct
Constructor for the Format attribute.
public __construct(string $format): voidParameters
| Parameter | Type | Description |
|---|---|---|
$format | string | the format string to apply to the property value |
evaluate
Formats the property value using the specified format string.
public evaluate(mixed $propertyValue, \ReflectionProperty $property): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$propertyValue | mixed | the value of the property to format (passed by reference) |
$property | ReflectionProperty | the reflection property instance for metadata (passed by reference) |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000