src/Entity/MenuItemFront.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MenuItemFrontRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. #[ORM\Entity(repositoryClass: MenuItemFrontRepository::class)]
  8. class MenuItemFront
  9. {
  10.     public Const HOTEL_CONTRY_CODE ='HOTEL-COUNTRY-';
  11.     #[ORM\Id]
  12.     #[ORM\Column(type: 'string', length: 255)]
  13.     private ?string $id;
  14.     #[Gedmo\Translatable]
  15.     #[ORM\Column(length: 255)]
  16.     private ?string $title = null;
  17.     #[ORM\Column(length: 255, nullable: true)]
  18.     private ?string $route = null;
  19.     #[ORM\Column]
  20.     private ?int $displayOrder = null;
  21.     #[ORM\Column(length: 255, nullable: true)]
  22.     private ?string $parent = null;
  23.     #[ORM\ManyToOne]
  24.     private ?Country $country = null;
  25.     #[ORM\Column]
  26.     private ?bool $active = null;
  27.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  28.     private ?string $externalUrl = null;
  29.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  30.     private ?string $targetLink = null;
  31.     #[ORM\Column(length: 32, nullable: true)]
  32.     private ?string $module = null;
  33.     public function getId(): ?string
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getTitle(): ?string
  38.     {
  39.         return $this->title;
  40.     }
  41.     public function setTitle(string $title): self
  42.     {
  43.         $this->title = $title;
  44.         return $this;
  45.     }
  46.     public function getRoute(): ?string
  47.     {
  48.         return $this->route;
  49.     }
  50.     public function setId(?string $id): self
  51.     {
  52.         $this->id = $id;
  53.         return $this;
  54.     }
  55.     public function setRoute(?string $route): self
  56.     {
  57.         $this->route = $route;
  58.         return $this;
  59.     }
  60.     public function getDisplayOrder(): ?int
  61.     {
  62.         return $this->displayOrder;
  63.     }
  64.     public function setDisplayOrder(int $displayOrder): self
  65.     {
  66.         $this->displayOrder = $displayOrder;
  67.         return $this;
  68.     }
  69.     public function getParent(): ?string
  70.     {
  71.         return $this->parent;
  72.     }
  73.     public function setParent(?string $parent): self
  74.     {
  75.         $this->parent = $parent;
  76.         return $this;
  77.     }
  78.     public function getCountry(): ?Country
  79.     {
  80.         return $this->country;
  81.     }
  82.     public function setCountry(?Country $country): self
  83.     {
  84.         $this->country = $country;
  85.         return $this;
  86.     }
  87.     public function isActive(): ?bool
  88.     {
  89.         return $this->active;
  90.     }
  91.     public function setActive(bool $active): self
  92.     {
  93.         $this->active = $active;
  94.         return $this;
  95.     }
  96.     public function __toString(): string
  97.     {
  98.         return $this->getTitle();
  99.     }
  100.     public function getExternalUrl(): ?string
  101.     {
  102.         return $this->externalUrl;
  103.     }
  104.     public function setExternalUrl(?string $externalUrl): static
  105.     {
  106.         $this->externalUrl = $externalUrl;
  107.         return $this;
  108.     }
  109.     public function getTargetLink(): ?string
  110.     {
  111.         return $this->targetLink;
  112.     }
  113.     public function setTargetLink(?string $targetLink): static
  114.     {
  115.         $this->targetLink = $targetLink;
  116.         return $this;
  117.     }
  118.     public function getModule(): ?string
  119.     {
  120.         return $this->module;
  121.     }
  122.     public function setModule(?string $module): self
  123.     {
  124.         $this->module = $module;
  125.         return $this;
  126.     }
  127. }