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 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
) {
}

            
getName() public method

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;
}

            
getResolver() public method

public string getResolver ( )

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