<?php
namespace App\Entity;
use App\Repository\ReservationSettingRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ReservationSettingRepository::class)]
class ReservationSetting
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Column(type: 'string', length: 255)]
private ?string $dayOfWeek = null;
#[ORM\Column(type: 'integer')]
private ?int $maxguestsPerSlot = null;
#[ORM\Column(type: 'boolean')]
private ?bool $active = null;
#[ORM\Column(type: 'array')]
private array $timeSlots = [];
public function getId(): ?int
{
return $this->id;
}
public function getDayOfWeek(): ?string
{
return $this->dayOfWeek;
}
public function setDayOfWeek(string $dayOfWeek): self
{
$this->dayOfWeek = $dayOfWeek;
return $this;
}
public function getMaxguestsPerSlot(): ?int
{
return $this->maxguestsPerSlot;
}
public function setMaxguestsPerSlot(int $maxguestsPerSlot): self
{
$this->maxguestsPerSlot = $maxguestsPerSlot;
return $this;
}
public function isActive(): ?bool
{
return $this->active;
}
public function setActive(bool $active): self
{
$this->active = $active;
return $this;
}
public function getTimeSlots(): ?array
{
return $this->timeSlots;
}
public function setTimeSlots(array $timeSlots): self
{
$this->timeSlots = $timeSlots;
return $this;
}
}