<?php
namespace App\Entity;
use App\Repository\PendingReservationRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PendingReservationRepository::class)
*/
class PendingReservation
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Company::class, inversedBy="pendingReservations")
*/
private $company;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="pendingReservations")
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="pendingReservations")
*/
private $product;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $totalAmount;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $color;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $size;
/**
* @ORM\Column(type="integer")
*/
private $nbGuests;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isReceived;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $groupOptions = [];
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $reservationPlannedAt;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $payinId;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isAccepted;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $raisonRefus;
/**
* @ORM\Column(type="integer")
*/
private $quantity;
/**
* @ORM\Column(type="array", nullable=true)
*/
private $options = [];
public function getId(): ?int
{
return $this->id;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getTotalAmount(): ?float
{
return $this->totalAmount;
}
public function setTotalAmount(?float $totalAmount): self
{
$this->totalAmount = $totalAmount;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(?string $color): self
{
$this->color = $color;
return $this;
}
public function getSize(): ?string
{
return $this->size;
}
public function setSize(?string $size): self
{
$this->size = $size;
return $this;
}
public function getNbGuests(): ?int
{
return $this->nbGuests;
}
public function setNbGuests(int $nbGuests): self
{
$this->nbGuests = $nbGuests;
return $this;
}
public function getIsReceived(): ?bool
{
return $this->isReceived;
}
public function setIsReceived(?bool $isReceived): self
{
$this->isReceived = $isReceived;
return $this;
}
public function getGroupOptions(): ?array
{
return $this->groupOptions;
}
public function setGroupOptions(?array $groupOptions): self
{
$this->groupOptions = $groupOptions;
return $this;
}
public function getReservationPlannedAt(): ?\DateTimeInterface
{
return $this->reservationPlannedAt;
}
public function setReservationPlannedAt(?\DateTimeInterface $reservationPlannedAt): self
{
$this->reservationPlannedAt = $reservationPlannedAt;
return $this;
}
public function getPayinId(): ?string
{
return $this->payinId;
}
public function setPayinId(?string $payinId): self
{
$this->payinId = $payinId;
return $this;
}
public function getIsAccepted(): ?bool
{
return $this->isAccepted;
}
public function setIsAccepted(?bool $isAccepted): self
{
$this->isAccepted = $isAccepted;
return $this;
}
public function getRaisonRefus(): ?string
{
return $this->raisonRefus;
}
public function setRaisonRefus(?string $raisonRefus): self
{
$this->raisonRefus = $raisonRefus;
return $this;
}
public function getQuantity(): ?int
{
return $this->quantity;
}
public function setQuantity(int $quantity): self
{
$this->quantity = $quantity;
return $this;
}
public function getOptions(): ?array
{
return $this->options;
}
public function setOptions(?array $options): self
{
$this->options = $options;
return $this;
}
}