Final Class Yiisoft\Input\Http\Attribute\Parameter\Request
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Take data for the property or attribute from request attributes.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| getName() | Get the name of the field in the request attributes to get data from. | Yiisoft\ |
| getResolver() | Yiisoft\ |
Method Details
| public mixed __construct ( array|string|null $name = null ) | ||
| $name | array|string|null |
The field in the request attributes to get data from. |
public function __construct(
private string|array|null $name = null,
) {}
Get the name of the field in the request attributes to get data from.
| public string|array|null getName ( ) |
public function getName(): string|array|null
{
return $this->name;
}
| public string getResolver ( ) |
public function getResolver(): string
{
return RequestResolver::class;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.