src/Entity/PendingReservation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PendingReservationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PendingReservationRepository::class)
  7.  */
  8. class PendingReservation
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="pendingReservations")
  18.      */
  19.     private $company;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="pendingReservations")
  22.      */
  23.     private $user;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="pendingReservations")
  26.      */
  27.     private $product;
  28.     /**
  29.      * @ORM\Column(type="datetime", nullable=true)
  30.      */
  31.     private $createdAt;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=true)
  34.      */
  35.     private $updatedAt;
  36.     /**
  37.      * @ORM\Column(type="float", nullable=true)
  38.      */
  39.     private $totalAmount;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $color;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $size;
  48.     /**
  49.      * @ORM\Column(type="integer")
  50.      */
  51.     private $nbGuests;
  52.     /**
  53.      * @ORM\Column(type="boolean", nullable=true)
  54.      */
  55.     private $isReceived;
  56.     /**
  57.      * @ORM\Column(type="json", nullable=true)
  58.      */
  59.     private $groupOptions = [];
  60.     /**
  61.      * @ORM\Column(type="datetime", nullable=true)
  62.      */
  63.     private $reservationPlannedAt;
  64.     /**
  65.      * @ORM\Column(type="string", length=255, nullable=true)
  66.      */
  67.     private $payinId;
  68.     /**
  69.      * @ORM\Column(type="boolean", nullable=true)
  70.      */
  71.     private $isAccepted;
  72.     /**
  73.      * @ORM\Column(type="text", nullable=true)
  74.      */
  75.     private $raisonRefus;
  76.     /**
  77.      * @ORM\Column(type="integer")
  78.      */
  79.     private $quantity;
  80.     /**
  81.      * @ORM\Column(type="array", nullable=true)
  82.      */
  83.     private $options = [];
  84.     public function getId(): ?int
  85.     {
  86.         return $this->id;
  87.     }
  88.     public function getCompany(): ?Company
  89.     {
  90.         return $this->company;
  91.     }
  92.     public function setCompany(?Company $company): self
  93.     {
  94.         $this->company $company;
  95.         return $this;
  96.     }
  97.     public function getUser(): ?User
  98.     {
  99.         return $this->user;
  100.     }
  101.     public function setUser(?User $user): self
  102.     {
  103.         $this->user $user;
  104.         return $this;
  105.     }
  106.     public function getProduct(): ?Product
  107.     {
  108.         return $this->product;
  109.     }
  110.     public function setProduct(?Product $product): self
  111.     {
  112.         $this->product $product;
  113.         return $this;
  114.     }
  115.     public function getCreatedAt(): ?\DateTimeInterface
  116.     {
  117.         return $this->createdAt;
  118.     }
  119.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  120.     {
  121.         $this->createdAt $createdAt;
  122.         return $this;
  123.     }
  124.     public function getUpdatedAt(): ?\DateTimeInterface
  125.     {
  126.         return $this->updatedAt;
  127.     }
  128.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  129.     {
  130.         $this->updatedAt $updatedAt;
  131.         return $this;
  132.     }
  133.     public function getTotalAmount(): ?float
  134.     {
  135.         return $this->totalAmount;
  136.     }
  137.     public function setTotalAmount(?float $totalAmount): self
  138.     {
  139.         $this->totalAmount $totalAmount;
  140.         return $this;
  141.     }
  142.     public function getColor(): ?string
  143.     {
  144.         return $this->color;
  145.     }
  146.     public function setColor(?string $color): self
  147.     {
  148.         $this->color $color;
  149.         return $this;
  150.     }
  151.     public function getSize(): ?string
  152.     {
  153.         return $this->size;
  154.     }
  155.     public function setSize(?string $size): self
  156.     {
  157.         $this->size $size;
  158.         return $this;
  159.     }
  160.     public function getNbGuests(): ?int
  161.     {
  162.         return $this->nbGuests;
  163.     }
  164.     public function setNbGuests(int $nbGuests): self
  165.     {
  166.         $this->nbGuests $nbGuests;
  167.         return $this;
  168.     }
  169.     public function getIsReceived(): ?bool
  170.     {
  171.         return $this->isReceived;
  172.     }
  173.     public function setIsReceived(?bool $isReceived): self
  174.     {
  175.         $this->isReceived $isReceived;
  176.         return $this;
  177.     }
  178.     public function getGroupOptions(): ?array
  179.     {
  180.         return $this->groupOptions;
  181.     }
  182.     public function setGroupOptions(?array $groupOptions): self
  183.     {
  184.         $this->groupOptions $groupOptions;
  185.         return $this;
  186.     }
  187.     public function getReservationPlannedAt(): ?\DateTimeInterface
  188.     {
  189.         return $this->reservationPlannedAt;
  190.     }
  191.     public function setReservationPlannedAt(?\DateTimeInterface $reservationPlannedAt): self
  192.     {
  193.         $this->reservationPlannedAt $reservationPlannedAt;
  194.         return $this;
  195.     }
  196.     public function getPayinId(): ?string
  197.     {
  198.         return $this->payinId;
  199.     }
  200.     public function setPayinId(?string $payinId): self
  201.     {
  202.         $this->payinId $payinId;
  203.         return $this;
  204.     }
  205.     public function getIsAccepted(): ?bool
  206.     {
  207.         return $this->isAccepted;
  208.     }
  209.     public function setIsAccepted(?bool $isAccepted): self
  210.     {
  211.         $this->isAccepted $isAccepted;
  212.         return $this;
  213.     }
  214.     public function getRaisonRefus(): ?string
  215.     {
  216.         return $this->raisonRefus;
  217.     }
  218.     public function setRaisonRefus(?string $raisonRefus): self
  219.     {
  220.         $this->raisonRefus $raisonRefus;
  221.         return $this;
  222.     }
  223.     public function getQuantity(): ?int
  224.     {
  225.         return $this->quantity;
  226.     }
  227.     public function setQuantity(int $quantity): self
  228.     {
  229.         $this->quantity $quantity;
  230.         return $this;
  231.     }
  232.     public function getOptions(): ?array
  233.     {
  234.         return $this->options;
  235.     }
  236.     public function setOptions(?array $options): self
  237.     {
  238.         $this->options $options;
  239.         return $this;
  240.     }
  241. }