public __construct ( integer $userId, Psr\Http\Message\UploadedFileInterface $file, |
||
$userId | integer | The ID of the user to upload the avatar for. |
$file | Psr\Http\Message\UploadedFileInterface | The avatar file to upload. |
$actor | The user performing the action. |
public function __construct($userId, UploadedFileInterface $file, User $actor)
{
$this->userId = $userId;
$this->file = $file;
$this->actor = $actor;
}