Pad
Less than 1 minute
Pad
class Pad extends \Hazaar\Model\Attribute\BaseProperties
length
The length to pad the string property to.
private int $lengthMethods
__construct
Constructor for the Pad attribute.
public __construct(int $length): voidParameters
| Parameter | Type | Description |
|---|---|---|
$length | int | the length to pad the string property to |
evaluate
Pads the string property value to the specified length.
public evaluate(mixed $propertyValue, \ReflectionProperty $property): boolParameters
| Parameter | Type | Description |
|---|---|---|
$propertyValue | mixed | the value of the property to pad (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