Add short and long PDF paths to elements, keep pdfPath as a short PDF compatibility alias, and route generic file uploads by fileType.
19 lines
449 B
PHP
19 lines
449 B
PHP
<?php
|
|
|
|
namespace App\Element\UseCases\CreateElement;
|
|
|
|
class CreateElementRequest
|
|
{
|
|
public function __construct(
|
|
public ?int $setId,
|
|
public ?string $title,
|
|
public ?string $description,
|
|
public ?string $iconImageUrl,
|
|
public ?string $richText,
|
|
public ?string $shortPdfPath,
|
|
public ?string $longPdfPath,
|
|
public ?string $youtubeUrl,
|
|
public ?int $parentElementId,
|
|
) {
|
|
}
|
|
}
|