src/Entity/Hotelprice.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HotelpriceRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=HotelpriceRepository::class)
  9.  */
  10. class Hotelprice
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="float", nullable=true)
  20.      */
  21.     private $price;
  22.     /**
  23.      * @ORM\Column(type="float", nullable=true)
  24.      */
  25.     private $pricew;
  26.     /**
  27.      * @ORM\Column(type="date", nullable=true)
  28.      */
  29.     private $dated;
  30.     /**
  31.      * @ORM\Column(type="date", nullable=true)
  32.      */
  33.     private $datef;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      */
  37.     private $nbnuit;
  38.     /**
  39.      * @ORM\Column(type="integer", nullable=true)
  40.      */
  41.     private $nbperso;
  42.     /**
  43.      * @ORM\Column(type="integer")
  44.      */
  45.     private $delaiannul;
  46.     /**
  47.      * @ORM\Column(type="integer", nullable=true)
  48.      */
  49.     private $retro;
  50.     /**
  51.      * @ORM\Column(type="float", nullable=true)
  52.      */
  53.     private $red3lit;
  54.     /**
  55.      * @ORM\Column(type="boolean", nullable=true)
  56.      */
  57.     private $pers3lit;
  58.     /**
  59.      * @ORM\Column(type="float", nullable=true)
  60.      */
  61.     private $red4lit;
  62.     /**
  63.      * @ORM\Column(type="boolean", nullable=true)
  64.      */
  65.     private $pers4lit;
  66.     /**
  67.      * @ORM\Column(type="float", nullable=true)
  68.      */
  69.     private $supsingle;
  70.     /**
  71.      * @ORM\Column(type="boolean", nullable=true)
  72.      */
  73.     private $perssupsingle;
  74.     /**
  75.      * @ORM\Column(type="float", nullable=true)
  76.      */
  77.     private $supsinglew;
  78.     /**
  79.      * @ORM\Column(type="boolean", nullable=true)
  80.      */
  81.     private $perssupsinglew;
  82.     /**
  83.      * @ORM\Column(type="float", nullable=true)
  84.      */
  85.     private $margess;
  86.     /**
  87.      * @ORM\Column(type="boolean", nullable=true)
  88.      */
  89.     private $persss;
  90.     /**
  91.      * @ORM\Column(type="float", nullable=true)
  92.      */
  93.     private $margessw;
  94.     /**
  95.      * @ORM\Column(type="boolean", nullable=true)
  96.      */
  97.     private $persssw;
  98.     /**
  99.      * @ORM\Column(type="date", nullable=true)
  100.      */
  101.     private $dcr;
  102.     /**
  103.      * @ORM\Column(type="date", nullable=true)
  104.      */
  105.     private $dmj;
  106.     /**
  107.      * @ORM\ManyToOne(targetEntity=Hotel::class, inversedBy="hotelprices")
  108.      * @ORM\JoinColumn(nullable=false)
  109.      */
  110.     private $hotel;
  111.     /**
  112.      * @ORM\OneToMany(targetEntity=Priceroom::class, mappedBy="hotelprice", orphanRemoval=true)
  113.      */
  114.     private $pricerooms;
  115.     /**
  116.      * @ORM\OneToMany(targetEntity=Pricearrangement::class, mappedBy="hotelprice", orphanRemoval=true)
  117.      */
  118.     private $pricearrangements;
  119.     /**
  120.      * @ORM\OneToMany(targetEntity=Pricesupplement::class, mappedBy="hotelprice", orphanRemoval=true)
  121.      */
  122.     private $pricesupplements;
  123.     public function __construct()
  124.     {
  125.         $this->pricerooms = new ArrayCollection();
  126.         $this->pricearrangements = new ArrayCollection();
  127.         $this->pricesupplements = new ArrayCollection();
  128.     }
  129.     public function getId(): ?int
  130.     {
  131.         return $this->id;
  132.     }
  133.     public function getPrice(): ?float
  134.     {
  135.         return $this->price;
  136.     }
  137.     public function setPrice(?float $price): self
  138.     {
  139.         $this->price $price;
  140.         return $this;
  141.     }
  142.     public function getPricew(): ?float
  143.     {
  144.         return $this->pricew;
  145.     }
  146.     public function setPricew(?float $pricew): self
  147.     {
  148.         $this->pricew $pricew;
  149.         return $this;
  150.     }
  151.     public function getDated(): ?\DateTimeInterface
  152.     {
  153.         return $this->dated;
  154.     }
  155.     public function setDated(?\DateTimeInterface $dated): self
  156.     {
  157.         $this->dated $dated;
  158.         return $this;
  159.     }
  160.     public function getDatef(): ?\DateTimeInterface
  161.     {
  162.         return $this->datef;
  163.     }
  164.     public function setDatef(?\DateTimeInterface $datef): self
  165.     {
  166.         $this->datef $datef;
  167.         return $this;
  168.     }
  169.     public function getNbnuit(): ?int
  170.     {
  171.         return $this->nbnuit;
  172.     }
  173.     public function setNbnuit(?int $nbnuit): self
  174.     {
  175.         $this->nbnuit $nbnuit;
  176.         return $this;
  177.     }
  178.     public function getNbperso(): ?int
  179.     {
  180.         return $this->nbperso;
  181.     }
  182.     public function setNbperso(?int $nbperso): self
  183.     {
  184.         $this->nbperso $nbperso;
  185.         return $this;
  186.     }
  187.     public function getDelaiannul(): ?int
  188.     {
  189.         return $this->delaiannul;
  190.     }
  191.     public function setDelaiannul(int $delaiannul): self
  192.     {
  193.         $this->delaiannul $delaiannul;
  194.         return $this;
  195.     }
  196.     public function getRetro(): ?int
  197.     {
  198.         return $this->retro;
  199.     }
  200.     public function setRetro(?int $retro): self
  201.     {
  202.         $this->retro $retro;
  203.         return $this;
  204.     }
  205.     public function getRed3lit(): ?float
  206.     {
  207.         return $this->red3lit;
  208.     }
  209.     public function setRed3lit(?float $red3lit): self
  210.     {
  211.         $this->red3lit $red3lit;
  212.         return $this;
  213.     }
  214.     public function isPers3lit(): ?bool
  215.     {
  216.         return $this->pers3lit;
  217.     }
  218.     public function setPers3lit(?bool $pers3lit): self
  219.     {
  220.         $this->pers3lit $pers3lit;
  221.         return $this;
  222.     }
  223.     public function getRed4lit(): ?float
  224.     {
  225.         return $this->red4lit;
  226.     }
  227.     public function setRed4lit(?float $red4lit): self
  228.     {
  229.         $this->red4lit $red4lit;
  230.         return $this;
  231.     }
  232.     public function isPers4lit(): ?bool
  233.     {
  234.         return $this->pers4lit;
  235.     }
  236.     public function setPers4lit(?bool $pers4lit): self
  237.     {
  238.         $this->pers4lit $pers4lit;
  239.         return $this;
  240.     }
  241.     public function getSupsingle(): ?float
  242.     {
  243.         return $this->supsingle;
  244.     }
  245.     public function setSupsingle(?float $supsingle): self
  246.     {
  247.         $this->supsingle $supsingle;
  248.         return $this;
  249.     }
  250.     public function isPerssupsingle(): ?bool
  251.     {
  252.         return $this->perssupsingle;
  253.     }
  254.     public function setPerssupsingle(?bool $perssupsingle): self
  255.     {
  256.         $this->perssupsingle $perssupsingle;
  257.         return $this;
  258.     }
  259.     public function getSupsinglew(): ?float
  260.     {
  261.         return $this->supsinglew;
  262.     }
  263.     public function setSupsinglew(?float $supsinglew): self
  264.     {
  265.         $this->supsinglew $supsinglew;
  266.         return $this;
  267.     }
  268.     public function isPerssupsinglew(): ?bool
  269.     {
  270.         return $this->perssupsinglew;
  271.     }
  272.     public function setPerssupsinglew(?bool $perssupsinglew): self
  273.     {
  274.         $this->perssupsinglew $perssupsinglew;
  275.         return $this;
  276.     }
  277.     public function getMargess(): ?float
  278.     {
  279.         return $this->margess;
  280.     }
  281.     public function setMargess(?float $margess): self
  282.     {
  283.         $this->margess $margess;
  284.         return $this;
  285.     }
  286.     public function isPersss(): ?bool
  287.     {
  288.         return $this->persss;
  289.     }
  290.     public function setPersss(?bool $persss): self
  291.     {
  292.         $this->persss $persss;
  293.         return $this;
  294.     }
  295.     public function getMargessw(): ?float
  296.     {
  297.         return $this->margessw;
  298.     }
  299.     public function setMargessw(?float $margessw): self
  300.     {
  301.         $this->margessw $margessw;
  302.         return $this;
  303.     }
  304.     public function isPersssw(): ?bool
  305.     {
  306.         return $this->persssw;
  307.     }
  308.     public function setPersssw(?bool $persssw): self
  309.     {
  310.         $this->persssw $persssw;
  311.         return $this;
  312.     }
  313.     public function getDcr(): ?\DateTimeInterface
  314.     {
  315.         return $this->dcr;
  316.     }
  317.     public function setDcr(?\DateTimeInterface $dcr): self
  318.     {
  319.         $this->dcr $dcr;
  320.         return $this;
  321.     }
  322.     public function getDmj(): ?\DateTimeInterface
  323.     {
  324.         return $this->dmj;
  325.     }
  326.     public function setDmj(?\DateTimeInterface $dmj): self
  327.     {
  328.         $this->dmj $dmj;
  329.         return $this;
  330.     }
  331.     public function getHotel(): ?Hotel
  332.     {
  333.         return $this->hotel;
  334.     }
  335.     public function setHotel(?Hotel $hotel): self
  336.     {
  337.         $this->hotel $hotel;
  338.         return $this;
  339.     }
  340.     /**
  341.      * @return Collection<int, Priceroom>
  342.      */
  343.     public function getPricerooms(): Collection
  344.     {
  345.         return $this->pricerooms;
  346.     }
  347.     public function addPriceroom(Priceroom $priceroom): self
  348.     {
  349.         if (!$this->pricerooms->contains($priceroom)) {
  350.             $this->pricerooms[] = $priceroom;
  351.             $priceroom->setHotelprice($this);
  352.         }
  353.         return $this;
  354.     }
  355.     public function removePriceroom(Priceroom $priceroom): self
  356.     {
  357.         if ($this->pricerooms->removeElement($priceroom)) {
  358.             // set the owning side to null (unless already changed)
  359.             if ($priceroom->getHotelprice() === $this) {
  360.                 $priceroom->setHotelprice(null);
  361.             }
  362.         }
  363.         return $this;
  364.     }
  365.     /**
  366.      * @return Collection<int, Pricearrangement>
  367.      */
  368.     public function getPricearrangements(): Collection
  369.     {
  370.         return $this->pricearrangements;
  371.     }
  372.     public function addPricearrangement(Pricearrangement $pricearrangement): self
  373.     {
  374.         if (!$this->pricearrangements->contains($pricearrangement)) {
  375.             $this->pricearrangements[] = $pricearrangement;
  376.             $pricearrangement->setHotelprice($this);
  377.         }
  378.         return $this;
  379.     }
  380.     public function removePricearrangement(Pricearrangement $pricearrangement): self
  381.     {
  382.         if ($this->pricearrangements->removeElement($pricearrangement)) {
  383.             // set the owning side to null (unless already changed)
  384.             if ($pricearrangement->getHotelprice() === $this) {
  385.                 $pricearrangement->setHotelprice(null);
  386.             }
  387.         }
  388.         return $this;
  389.     }
  390.     /**
  391.      * @return Collection<int, Pricesupplement>
  392.      */
  393.     public function getPricesupplements(): Collection
  394.     {
  395.         return $this->pricesupplements;
  396.     }
  397.     public function addPricesupplement(Pricesupplement $pricesupplement): self
  398.     {
  399.         if (!$this->pricesupplements->contains($pricesupplement)) {
  400.             $this->pricesupplements[] = $pricesupplement;
  401.             $pricesupplement->setHotelprice($this);
  402.         }
  403.         return $this;
  404.     }
  405.     public function removePricesupplement(Pricesupplement $pricesupplement): self
  406.     {
  407.         if ($this->pricesupplements->removeElement($pricesupplement)) {
  408.             // set the owning side to null (unless already changed)
  409.             if ($pricesupplement->getHotelprice() === $this) {
  410.                 $pricesupplement->setHotelprice(null);
  411.             }
  412.         }
  413.         return $this;
  414.     }
  415. }