src/Entity/ReservationSetting.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReservationSettingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassReservationSettingRepository::class)]
  6. class ReservationSetting
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\Column(type'string'length255)]
  13.     private ?string $dayOfWeek null;
  14.     #[ORM\Column(type'integer')]
  15.     private ?int $maxguestsPerSlot null;
  16.     #[ORM\Column(type'boolean')]
  17.     private ?bool $active null;
  18.     #[ORM\Column(type'array')]
  19.     private array $timeSlots = [];
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getDayOfWeek(): ?string
  25.     {
  26.         return $this->dayOfWeek;
  27.     }
  28.     public function setDayOfWeek(string $dayOfWeek): self
  29.     {
  30.         $this->dayOfWeek $dayOfWeek;
  31.         return $this;
  32.     }
  33.     public function getMaxguestsPerSlot(): ?int
  34.     {
  35.         return $this->maxguestsPerSlot;
  36.     }
  37.     public function setMaxguestsPerSlot(int $maxguestsPerSlot): self
  38.     {
  39.         $this->maxguestsPerSlot $maxguestsPerSlot;
  40.         return $this;
  41.     }
  42.     public function isActive(): ?bool
  43.     {
  44.         return $this->active;
  45.     }
  46.     public function setActive(bool $active): self
  47.     {
  48.         $this->active $active;
  49.         return $this;
  50.     }
  51.     public function getTimeSlots(): ?array
  52.     {
  53.         return $this->timeSlots;
  54.     }
  55.     public function setTimeSlots(array $timeSlots): self
  56.     {
  57.         $this->timeSlots $timeSlots;
  58.         return $this;
  59.     }
  60. }