<?phpnamespace App\Entity;use App\Repository\FrontPageRepository;use App\Trait\SearchEngineOptimization;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: FrontPageRepository::class)]class FrontPage{ use SearchEngineOptimization; public const HOME_PAGE = "home"; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $slug = null; #[Gedmo\Translatable] #[ORM\Column(length: 128, nullable: true)] private ?string $title = null; #[Gedmo\Translatable] #[ORM\Column(type: Types::TEXT)] private ?string $description = null; #[Gedmo\Translatable] #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $content = null; #[ORM\Column] private ?bool $active = null; #[ORM\Column] private ?bool $editable = null; public function getId(): ?int { return $this->id; } public function getSlug(): ?string { return $this->slug; } public function setSlug(string $slug): static { $this->slug = $slug; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): static { $this->title = $title; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): static { $this->description = $description; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(?string $content): static { $this->content = $content; return $this; } public function isActive(): ?bool { return $this->active; } public function setActive(bool $active): static { $this->active = $active; return $this; } public function __toString(): string { return $this->getTitle(); } public function isEditable(): ?bool { return $this->editable; } public function setEditable(?bool $editable): void { $this->editable = $editable; }}