0 follower

Final Class Yiisoft\Input\Http\Attribute\Parameter\Request

InheritanceYiisoft\Input\Http\Attribute\Parameter\Request
ImplementsYiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface

Take data for the property or attribute from request attributes.

Method Details

Hide inherited methods

__construct() public method

public __construct( array|string|null $name null ): mixed
$name array|string|null

The field in the request attributes to get data from.

                public function __construct(
    private string|array|null $name = null,
) {}

            
getName() public method

Get the name of the field in the request attributes to get data from.

public getName( ): string|array|null

                public function getName(): string|array|null
{
    return $this->name;
}

            
getResolver() public method

public getResolver( ): string

                public function getResolver(): string
{
    return RequestResolver::class;
}