Upload beautify
This commit is contained in:
22
app/DTOs/Uploads/UploadSessionData.php
Normal file
22
app/DTOs/Uploads/UploadSessionData.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\DTOs\Uploads;
|
||||
|
||||
use Carbon\CarbonImmutable;
|
||||
|
||||
final class UploadSessionData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly string $id,
|
||||
public readonly int $userId,
|
||||
public readonly string $tempPath,
|
||||
public readonly string $status,
|
||||
public readonly string $ip,
|
||||
public readonly CarbonImmutable $createdAt,
|
||||
public readonly int $progress,
|
||||
public readonly ?string $failureReason
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user