src/Entity/Reservation.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReservationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassReservationRepository::class)]
  6. class Reservation
  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 $name null;
  14.     #[ORM\Column(type'string'length255)]
  15.     private ?string $email null;
  16.     #[ORM\Column(type'string'length255)]
  17.     private ?string $phone null;
  18.     #[ORM\Column(type'date')]
  19.     private ?\DateTimeInterface $date null;
  20.     #[ORM\Column(type'time')]
  21.     private ?\DateTimeInterface $time null;
  22.     #[ORM\Column(type'integer')]
  23.     private ?int $guests null;
  24.     #[ORM\Column(type'string'length255)]
  25.     private ?string $status null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getName(): ?string
  31.     {
  32.         return $this->name;
  33.     }
  34.     public function setName(string $name): self
  35.     {
  36.         $this->name $name;
  37.         return $this;
  38.     }
  39.     public function getEmail(): ?string
  40.     {
  41.         return $this->email;
  42.     }
  43.     public function setEmail(string $email): self
  44.     {
  45.         $this->email $email;
  46.         return $this;
  47.     }
  48.     public function getPhone(): ?string
  49.     {
  50.         return $this->phone;
  51.     }
  52.     public function setPhone(string $phone): self
  53.     {
  54.         $this->phone $phone;
  55.         return $this;
  56.     }
  57.     public function getDate(): ?\DateTimeInterface
  58.     {
  59.         return $this->date;
  60.     }
  61.     public function setDate(\DateTimeInterface $date): self
  62.     {
  63.         $this->date $date;
  64.         return $this;
  65.     }
  66.     public function getTime(): ?\DateTimeInterface
  67.     {
  68.         return $this->time;
  69.     }
  70.     public function setTime(\DateTimeInterface $time): self
  71.     {
  72.         $this->time $time;
  73.         return $this;
  74.     }
  75.     public function getGuests(): ?int
  76.     {
  77.         return $this->guests;
  78.     }
  79.     public function setGuests(int $guests): self
  80.     {
  81.         $this->guests $guests;
  82.         return $this;
  83.     }
  84.     public function getStatus(): ?string
  85.     {
  86.         return $this->status;
  87.     }
  88.     public function setStatus(string $status): self
  89.     {
  90.         $this->status $status;
  91.         return $this;
  92.     }
  93. }