Rabbi_Gerzi/backend/app/Element/Element.php

60 lines
1 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 $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 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;
}
}