<?php
namespace App\Entity;
use App\Repository\BookingRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: BookingRepository::class)]
class Booking
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $nom = null;
#[ORM\Column(nullable: true)]
private ?float $prix = null;
#[ORM\Column]
private ?int $destinationId = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $destnationName = null;
#[ORM\Column]
private ?int $nbOfSeats = null;
#[ORM\Column(nullable: true)]
private ?float $total = null;
#[ORM\Column]
private ?int $status = null;
#[ORM\Column]
private ?int $showBooking = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $dateBooking = null;
#[ORM\Column(length: 255)]
private ?string $mail = null;
#[ORM\Column(length: 255)]
private ?string $phone = null;
public function __construct()
{
$this->nbOfSeats = 1;
$this->showBooking = 0;
$this->destinationId = 1;
$this->total = 0;
$this->status = 0;
}
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrix(): ?float
{
return $this->prix;
}
public function setPrix(?float $prix): self
{
$this->prix = $prix;
return $this;
}
public function getDestinationId(): ?int
{
return $this->destinationId;
}
public function setDestinationId(int $destinationId): self
{
$this->destinationId = $destinationId;
return $this;
}
public function getDestnationName(): ?string
{
return $this->destnationName;
}
public function setDestnationName(?string $destnationName): self
{
$this->destnationName = $destnationName;
return $this;
}
public function getNbOfSeats(): ?int
{
return $this->nbOfSeats;
}
public function setNbOfSeats(int $nbOfSeats): self
{
$this->nbOfSeats = $nbOfSeats;
return $this;
}
public function getTotal(): ?float
{
return $this->total;
}
public function setTotal(?float $total): self
{
$this->total = $total;
return $this;
}
public function getStatus(): ?int
{
return $this->status;
}
public function setStatus(int $status): self
{
$this->status = $status;
return $this;
}
public function getShowBooking(): ?int
{
return $this->showBooking;
}
public function setShow(int $showBooking): self
{
$this->showBooking = $showBooking;
return $this;
}
public function getDateBooking(): ?\DateTimeInterface
{
return $this->dateBooking;
}
public function setDateBooking(\DateTimeInterface $dateBooking): self
{
$this->dateBooking = $dateBooking;
return $this;
}
public function getMail(): ?string
{
return $this->mail;
}
public function setMail(string $mail): self
{
$this->mail = $mail;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
}