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