<?php
namespace App\Entity;
use App\Repository\ReservationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ReservationRepository::class)]
class Reservation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Column(type: 'string', length: 255)]
private ?string $name = null;
#[ORM\Column(type: 'string', length: 255)]
private ?string $email = null;
#[ORM\Column(type: 'string', length: 255)]
private ?string $phone = null;
#[ORM\Column(type: 'date')]
private ?\DateTimeInterface $date = null;
#[ORM\Column(type: 'time')]
private ?\DateTimeInterface $time = null;
#[ORM\Column(type: 'integer')]
private ?int $guests = null;
#[ORM\Column(type: 'string', length: 255)]
private ?string $status = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getTime(): ?\DateTimeInterface
{
return $this->time;
}
public function setTime(\DateTimeInterface $time): self
{
$this->time = $time;
return $this;
}
public function getGuests(): ?int
{
return $this->guests;
}
public function setGuests(int $guests): self
{
$this->guests = $guests;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
}