<?php namespace App\Entity; use App\Repository\CustomPageRepository; use App\Traits\DateTrait; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation\Expose; use JMS\Serializer\Annotation\Groups; /** * @ORM\Entity(repositoryClass=CustomPageRepository::class) */ class CustomPage { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * * @Expose * @Groups({"get:read"}) */ private ?int $id = NULL; /** * @ORM\Column(type="string", length=255) * * @Expose * @Groups({"get:read"}) */ private string $title; /** * @ORM\Column(type="text") * * @Expose * @Groups({"get:read"}) */ private string $content; /** * @ORM\Column(type="text") */ private string $editableContent; /** * @ORM\Column(type="boolean", options={"default": false}) * * @Expose * @Groups({"get:read"}) */ private bool $enabled = FALSE; /** * @ORM\Column(type="boolean", options={"default": false}) * * @Expose * @Groups({"get:read"}) */ private bool $root = FALSE; /** * @ORM\Column(type="integer", nullable=true) * * @Expose * @Groups({"get:read"}) */ private ?int $positionInMenu = NULL; /** * @ORM\Column(type="string", length=255, nullable=true) * * @Expose * @Groups({"get:read"}) */ private $subdomain; use DateTrait; public function getId(): ?int { return $this->id; } public function getTitle(): string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getContent(): string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getEditableContent(): string { return $this->editableContent; } public function setEditableContent(string $editableContent): self { $this->editableContent = $editableContent; return $this; } public function isEnabled(): bool { return $this->enabled; } public function setEnabled(bool $enabled): self { $this->enabled = $enabled; return $this; } public function getPositionInMenu(): ?int { return $this->positionInMenu; } public function setPositionInMenu(?int $positionInMenu): self { $this->positionInMenu = $positionInMenu; return $this; } public function isRoot(): bool { return $this->root; } public function setRoot(bool $root): self { $this->root = $root; return $this; } public function getSubdomain(): ?string { return $this->subdomain; } public function setSubdomain(string $subdomain): self { $this->subdomain = $subdomain; return $this; } }