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(repositoryClassMenuItemFrontRepository::class)]
  8. class MenuItemFront
  9. {
  10.     public Const HOTEL_CONTRY_CODE ='HOTEL-COUNTRY-';
  11.     #[ORM\Id]
  12.     #[ORM\Column(type'string'length255)]
  13.     private ?string $id;
  14.     #[Gedmo\Translatable]
  15.     #[ORM\Column(length255)]
  16.     private ?string $title null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $route null;
  19.     #[ORM\Column]
  20.     private ?int $displayOrder null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $parent null;
  23.     #[ORM\ManyToOne]
  24.     private ?Country $country null;
  25.     #[ORM\Column]
  26.     private ?bool $active null;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $externalUrl null;
  29.     #[ORM\Column(type'string'length255nullabletrue)]
  30.     private ?string $targetLink null;
  31.     public function getId(): ?string
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getTitle(): ?string
  36.     {
  37.         return $this->title;
  38.     }
  39.     public function setTitle(string $title): self
  40.     {
  41.         $this->title $title;
  42.         return $this;
  43.     }
  44.     public function getRoute(): ?string
  45.     {
  46.         return $this->route;
  47.     }
  48.     public function setId(?string $id): self
  49.     {
  50.         $this->id $id;
  51.         return $this;
  52.     }
  53.     public function setRoute(?string $route): self
  54.     {
  55.         $this->route $route;
  56.         return $this;
  57.     }
  58.     public function getDisplayOrder(): ?int
  59.     {
  60.         return $this->displayOrder;
  61.     }
  62.     public function setDisplayOrder(int $displayOrder): self
  63.     {
  64.         $this->displayOrder $displayOrder;
  65.         return $this;
  66.     }
  67.     public function getParent(): ?string
  68.     {
  69.         return $this->parent;
  70.     }
  71.     public function setParent(?string $parent): self
  72.     {
  73.         $this->parent $parent;
  74.         return $this;
  75.     }
  76.     public function getCountry(): ?Country
  77.     {
  78.         return $this->country;
  79.     }
  80.     public function setCountry(?Country $country): self
  81.     {
  82.         $this->country $country;
  83.         return $this;
  84.     }
  85.     public function isActive(): ?bool
  86.     {
  87.         return $this->active;
  88.     }
  89.     public function setActive(bool $active): self
  90.     {
  91.         $this->active $active;
  92.         return $this;
  93.     }
  94.     public function __toString(): string
  95.     {
  96.         return $this->getTitle();
  97.     }
  98.     public function getExternalUrl(): ?string
  99.     {
  100.         return $this->externalUrl;
  101.     }
  102.     public function setExternalUrl(?string $externalUrl): static
  103.     {
  104.         $this->externalUrl $externalUrl;
  105.         return $this;
  106.     }
  107.     public function getTargetLink(): ?string
  108.     {
  109.         return $this->targetLink;
  110.     }
  111.     public function setTargetLink(?string $targetLink): static
  112.     {
  113.         $this->targetLink $targetLink;
  114.         return $this;
  115.     }
  116. }