66 lines
1.2 KiB
PHP
66 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Element;
|
|
|
|
use App\Set\Set;
|
|
|
|
class Element
|
|
{
|
|
public function __construct(
|
|
private int $id,
|
|
private string $title,
|
|
private string $description,
|
|
private ?string $iconImageUrl,
|
|
private string $richText,
|
|
private ?string $pdfPath,
|
|
private ?string $youtubeUrl,
|
|
private Set $set,
|
|
private ?Element $parentElement,
|
|
) {
|
|
}
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getTitle(): string
|
|
{
|
|
return $this->title;
|
|
}
|
|
|
|
public function getDescription(): string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function getIconImageUrl(): ?string
|
|
{
|
|
return $this->iconImageUrl;
|
|
}
|
|
|
|
public function getRichText(): string
|
|
{
|
|
return $this->richText;
|
|
}
|
|
|
|
public function getPdfPath(): ?string
|
|
{
|
|
return $this->pdfPath;
|
|
}
|
|
|
|
public function getYoutubeUrl(): ?string
|
|
{
|
|
return $this->youtubeUrl;
|
|
}
|
|
|
|
public function getSet(): Set
|
|
{
|
|
return $this->set;
|
|
}
|
|
|
|
public function getParentElement(): ?Element
|
|
{
|
|
return $this->parentElement;
|
|
}
|
|
}
|