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.     public function getId(): ?string
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getTitle(): ?string
  34.     {
  35.         return $this->title;
  36.     }
  37.     public function setTitle(string $title): self
  38.     {
  39.         $this->title $title;
  40.         return $this;
  41.     }
  42.     public function getRoute(): ?string
  43.     {
  44.         return $this->route;
  45.     }
  46.     public function setId(?string $id): self
  47.     {
  48.         $this->id $id;
  49.         return $this;
  50.     }
  51.     public function setRoute(?string $route): self
  52.     {
  53.         $this->route $route;
  54.         return $this;
  55.     }
  56.     public function getDisplayOrder(): ?int
  57.     {
  58.         return $this->displayOrder;
  59.     }
  60.     public function setDisplayOrder(int $displayOrder): self
  61.     {
  62.         $this->displayOrder $displayOrder;
  63.         return $this;
  64.     }
  65.     public function getParent(): ?string
  66.     {
  67.         return $this->parent;
  68.     }
  69.     public function setParent(?string $parent): self
  70.     {
  71.         $this->parent $parent;
  72.         return $this;
  73.     }
  74.     public function getCountry(): ?Country
  75.     {
  76.         return $this->country;
  77.     }
  78.     public function setCountry(?Country $country): self
  79.     {
  80.         $this->country $country;
  81.         return $this;
  82.     }
  83.     public function isActive(): ?bool
  84.     {
  85.         return $this->active;
  86.     }
  87.     public function setActive(bool $active): self
  88.     {
  89.         $this->active $active;
  90.         return $this;
  91.     }
  92.     public function __toString(): string
  93.     {
  94.         return $this->getTitle();
  95.     }
  96.     public function getExternalUrl(): ?string
  97.     {
  98.         return $this->externalUrl;
  99.     }
  100.     public function setExternalUrl(?string $externalUrl): static
  101.     {
  102.         $this->externalUrl $externalUrl;
  103.         return $this;
  104.     }
  105. }