Trim
Less than 1 minute
Trim
class Trim extends \Hazaar\Model\Attribute\BaseProperties
char
The character(s) to trim from the property value.
private string $charMethods
__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): boolParameters
| 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 Tue, 21 Apr 2026 04:00:23 +0000