Substr
Less than 1 minute
Substr
class Substr extends \Hazaar\Model\Attribute\BaseProperties
offset
The offset from which to start the substring.
private int $offsetlength
The maximum length of the substring.
private int $lengthMethods
__construct
Constructor for the Substr attribute.
public __construct(int $offset, int $length): voidParameters
| Parameter | Type | Description |
|---|---|---|
$offset | int | the offset from which to start the substring |
$length | int | the maximum length of the substring |
evaluate
Applies the substring operation to the property value.
public evaluate(mixed $propertyValue, \ReflectionProperty $property): boolParameters
| Parameter | Type | Description |
|---|---|---|
$propertyValue | mixed | the value of the property to substring (passed by reference) |
$property | \ReflectionProperty | the reflection property instance for metadata (passed by reference) |
getOffset
Gets the offset from which to start the substring.
public getOffset(): intgetLength
Gets the maximum length of the substring.
public getLength(): intGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000