Rabbi_Gerzi/backend/app/Element/Element.php

96 lines
1.8 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 setTitle(string $title): void
{
$this->title = $title;
}
public function getDescription(): string
{
return $this->description;
}
public function setDescription(string $description): void
{
$this->description = $description;
}
public function getIconImageUrl(): ?string
{
return $this->iconImageUrl;
}
public function setIconImageUrl(?string $iconImageUrl): void
{
$this->iconImageUrl = $iconImageUrl;
}
public function getRichText(): string
{
return $this->richText;
}
public function setRichText(string $richText): void
{
$this->richText = $richText;
}
public function getPdfPath(): ?string
{
return $this->pdfPath;
}
public function setPdfPath(?string $pdfPath): void
{
$this->pdfPath = $pdfPath;
}
public function getYoutubeUrl(): ?string
{
return $this->youtubeUrl;
}
public function setYoutubeUrl(?string $youtubeUrl): void
{
$this->youtubeUrl = $youtubeUrl;
}
public function getSet(): Set
{
return $this->set;
}
public function getParentElement(): ?Element
{
return $this->parentElement;
}
}