<?phpnamespace App\Entity;use App\Repository\MenuItemFrontRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: MenuItemFrontRepository::class)]class MenuItemFront{ public Const HOTEL_CONTRY_CODE ='HOTEL-COUNTRY-'; #[ORM\Id] #[ORM\Column(type: 'string', length: 255)] private ?string $id; #[Gedmo\Translatable] #[ORM\Column(length: 255)] private ?string $title = null; #[ORM\Column(length: 255, nullable: true)] private ?string $route = null; #[ORM\Column] private ?int $displayOrder = null; #[ORM\Column(length: 255, nullable: true)] private ?string $parent = null; #[ORM\ManyToOne] private ?Country $country = null; #[ORM\Column] private ?bool $active = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $externalUrl = null; public function getId(): ?string { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getRoute(): ?string { return $this->route; } public function setId(?string $id): self { $this->id = $id; return $this; } public function setRoute(?string $route): self { $this->route = $route; return $this; } public function getDisplayOrder(): ?int { return $this->displayOrder; } public function setDisplayOrder(int $displayOrder): self { $this->displayOrder = $displayOrder; return $this; } public function getParent(): ?string { return $this->parent; } public function setParent(?string $parent): self { $this->parent = $parent; return $this; } public function getCountry(): ?Country { return $this->country; } public function setCountry(?Country $country): self { $this->country = $country; return $this; } public function isActive(): ?bool { return $this->active; } public function setActive(bool $active): self { $this->active = $active; return $this; } public function __toString(): string { return $this->getTitle(); } public function getExternalUrl(): ?string { return $this->externalUrl; } public function setExternalUrl(?string $externalUrl): static { $this->externalUrl = $externalUrl; return $this; }}