Final Class Yiisoft\Hydrator\Attribute\Parameter\Trim
| Inheritance | Yiisoft\Hydrator\Attribute\Parameter\Trim |
|---|---|
| Implements | Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface |
Strip whitespace (or other characters) from the beginning and end of a resolved string value.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $characters | string|null | Yiisoft\Hydrator\Attribute\Parameter\Trim |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Hydrator\Attribute\Parameter\Trim | |
| getResolver() | Yiisoft\Hydrator\Attribute\Parameter\Trim |
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,
) {
}
Signup or Login in order to comment.