src/Entity/HotelFeature.php line 20

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the ArtHotel Naquera website.
  5.  *
  6.  * For the full copyright and license information,
  7.  * please read the LICENSE.md file that was distributed with this source code.
  8.  *
  9.  * Copyright (c) 2023.
  10.  */
  11. namespace App\Entity;
  12. use App\Repository\HotelFeatureRepository;
  13. use Doctrine\ORM\Mapping as ORM;
  14. #[ORM\Entity(repositoryClassHotelFeatureRepository::class)]
  15. class HotelFeature
  16. {
  17.     #[ORM\Id]
  18.     #[ORM\GeneratedValue]
  19.     #[ORM\Column]
  20.     private ?int $id null;
  21.     #[ORM\Column(length2nullabletrue)]
  22.     private ?string $language null;
  23.     #[ORM\Column(length255)]
  24.     private string $title '';
  25.     #[ORM\Column(length255)]
  26.     private string $image '';
  27.     #[ORM\Column(length255)]
  28.     private string $subtitle '';
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getLanguage(): ?string
  34.     {
  35.         return $this->language;
  36.     }
  37.     public function setLanguage(?string $language): self
  38.     {
  39.         $this->language $language;
  40.         return $this;
  41.     }
  42.     public function getTitle(): string
  43.     {
  44.         return $this->title;
  45.     }
  46.     public function setTitle(string $title): self
  47.     {
  48.         $this->title $title;
  49.         return $this;
  50.     }
  51.     public function getImage(): string
  52.     {
  53.         return $this->image;
  54.     }
  55.     public function setImage(string $image): self
  56.     {
  57.         $this->image $image;
  58.         return $this;
  59.     }
  60.     public function getSubtitle(): string
  61.     {
  62.         return $this->subtitle;
  63.     }
  64.     public function setSubtitle(string $subtitle): self
  65.     {
  66.         $this->subtitle $subtitle;
  67.         return $this;
  68.     }
  69. }