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 __construct( string|null $characters = null ): mixed | ||
| $characters | string|null |
The list all characters that you want to be stripped. With |
public function __construct(
public readonly ?string $characters = null,
) {}
| public getResolver( ): string |
public function getResolver(): string
{
return LeftTrimResolver::class;
}
Signup or Login in order to comment.