Final Class Yiisoft\Input\Http\Attribute\Parameter\Body
| Inheritance | Yiisoft\Input\Http\Attribute\Parameter\Body |
|---|---|
| Implements | Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface |
Take data for the property or attribute from the request body.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Input\Http\Attribute\Parameter\Body | |
| getName() | Get the name of the field in the request body to get data from. | Yiisoft\Input\Http\Attribute\Parameter\Body |
| getResolver() | Yiisoft\Input\Http\Attribute\Parameter\Body |
Method Details
| public mixed __construct ( array|string|null $name = null ) | ||
| $name | array|string|null |
The field in the request body to get data from. |
public function __construct(
private string|array|null $name = null
) {
}
Get the name of the field in the request body to get data from.
| public array|string|null getName ( ) | ||
| return | array|string|null |
The field in the request body to get data from. |
|---|---|---|
public function getName(): string|array|null
{
return $this->name;
}
Signup or Login in order to comment.