Format
Less than 1 minute
Format
class Format extends \Hazaar\Model\Attribute\BaseProperties
format
The format string to apply to the property value.
private string $formatMethods
__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): boolParameters
| 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 Tue, 21 Apr 2026 04:00:23 +0000