0 follower

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

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

Take data for the property or attribute from uploaded files.

Method Details

Hide inherited methods

__construct() public method

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

The field in the uploaded files to get data from.

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

            
getName() public method

Get the name of the field in the uploaded files to get data from.

public getName( ): array|string|null
return array|string|null

The field in the uploaded files to get data from.

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

            
getResolver() public method

public getResolver( ): string

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