Add short and long PDF paths to elements, keep pdfPath as a short PDF compatibility alias, and route generic file uploads by fileType.
21 lines
436 B
PHP
21 lines
436 B
PHP
<?php
|
|
|
|
namespace App\Element;
|
|
|
|
use App\Set\Set;
|
|
|
|
class CreateElementDto
|
|
{
|
|
public function __construct(
|
|
public Set $set,
|
|
public string $title,
|
|
public string $description,
|
|
public ?string $iconImageUrl,
|
|
public string $richText,
|
|
public ?string $shortPdfPath,
|
|
public ?string $longPdfPath,
|
|
public ?string $youtubeUrl,
|
|
public ?Element $parentElement,
|
|
) {
|
|
}
|
|
}
|