34 lines
614 B
PHP
34 lines
614 B
PHP
<?php
|
|
|
|
namespace App\Shared\Files;
|
|
|
|
final readonly class FileToUpload
|
|
{
|
|
public function __construct(
|
|
private string $contents,
|
|
private string $originalName,
|
|
private string $mimeType,
|
|
private int $sizeBytes,
|
|
) {
|
|
}
|
|
|
|
public function getContents(): string
|
|
{
|
|
return $this->contents;
|
|
}
|
|
|
|
public function getOriginalName(): string
|
|
{
|
|
return $this->originalName;
|
|
}
|
|
|
|
public function getMimeType(): string
|
|
{
|
|
return $this->mimeType;
|
|
}
|
|
|
|
public function getSizeBytes(): int
|
|
{
|
|
return $this->sizeBytes;
|
|
}
|
|
}
|