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 __construct( array|string|null $name = null ): mixed | ||
| $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 getName( ): array|string|null | ||
| return | array|string|null |
The field in the query string to get data from. |
|---|---|---|
public function getName(): string|array|null
{
return $this->name;
}
| public getResolver( ): string |
public function getResolver(): string
{
return QueryResolver::class;
}
Signup or Login in order to comment.