Add short and long PDF paths to elements, keep pdfPath as a short PDF compatibility alias, and route generic file uploads by fileType.
24 lines
629 B
PHP
24 lines
629 B
PHP
<?php
|
|
|
|
namespace App\Element\UseCases\UpdateElement;
|
|
|
|
class UpdateElementRequest
|
|
{
|
|
public function __construct(
|
|
public ?int $id,
|
|
public ?string $title,
|
|
public ?string $description,
|
|
public ?string $iconImageUrl,
|
|
public ?string $richText,
|
|
public ?string $shortPdfPath,
|
|
public ?string $longPdfPath,
|
|
public ?string $pdfPath,
|
|
public ?string $youtubeUrl,
|
|
public ?string $fileType,
|
|
public ?string $fileContents,
|
|
public ?string $fileOriginalName,
|
|
public ?string $fileMimeType,
|
|
public ?int $fileSizeBytes,
|
|
) {
|
|
}
|
|
}
|