Trim
Less than 1 minute
Trim
class Trim extends \Hazaar\Model\Attribute\BaseExtends: Hazaar\Model\Attribute\Base
Properties
char
The character(s) to trim from the property value.
private string $charType: string
Methods
__construct
Constructor for the Trim attribute.
public __construct(string $char = ' '): voidParameters
| Parameter | Type | Description |
|---|---|---|
$char | string | The character(s) to trim from the property value. Defaults to space. |
evaluate
Trims the specified character(s) from the property value.
public evaluate(mixed $propertyValue, \ReflectionProperty $property): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$propertyValue | mixed | the value of the property to trim (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