Final Class Yiisoft\Hydrator\Attribute\Parameter\LeftTrim
| Inheritance | Yiisoft\Hydrator\Attribute\Parameter\LeftTrim |
|---|---|
| Implements | Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface |
Strip whitespace (or other characters) from the beginning of a resolved string value.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $characters | string|null | Yiisoft\Hydrator\Attribute\Parameter\LeftTrim |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Hydrator\Attribute\Parameter\LeftTrim | |
| getResolver() | Yiisoft\Hydrator\Attribute\Parameter\LeftTrim |
Property Details
Method Details
| public mixed __construct ( string|null $characters = null ) | ||
| $characters | string|null |
The list all characters that you want to be stripped. With |
public function __construct(
public readonly ?string $characters = null,
) {
}
| public string getResolver ( ) |
public function getResolver(): string
{
return LeftTrimResolver::class;
}
Signup or Login in order to comment.