<?php
namespace App\Entity;
use App\Repository\HotelpriceRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=HotelpriceRepository::class)
*/
class Hotelprice
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $price;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $pricew;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dated;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datef;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $nbnuit;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $nbperso;
/**
* @ORM\Column(type="integer")
*/
private $delaiannul;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $retro;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $red3lit;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $pers3lit;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $red4lit;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $pers4lit;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $supsingle;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $perssupsingle;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $supsinglew;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $perssupsinglew;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $margess;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $persss;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $margessw;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $persssw;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dcr;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dmj;
/**
* @ORM\ManyToOne(targetEntity=Hotel::class, inversedBy="hotelprices")
* @ORM\JoinColumn(nullable=false)
*/
private $hotel;
/**
* @ORM\OneToMany(targetEntity=Priceroom::class, mappedBy="hotelprice", orphanRemoval=true)
*/
private $pricerooms;
/**
* @ORM\OneToMany(targetEntity=Pricearrangement::class, mappedBy="hotelprice", orphanRemoval=true)
*/
private $pricearrangements;
/**
* @ORM\OneToMany(targetEntity=Pricesupplement::class, mappedBy="hotelprice", orphanRemoval=true)
*/
private $pricesupplements;
public function __construct()
{
$this->pricerooms = new ArrayCollection();
$this->pricearrangements = new ArrayCollection();
$this->pricesupplements = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(?float $price): self
{
$this->price = $price;
return $this;
}
public function getPricew(): ?float
{
return $this->pricew;
}
public function setPricew(?float $pricew): self
{
$this->pricew = $pricew;
return $this;
}
public function getDated(): ?\DateTimeInterface
{
return $this->dated;
}
public function setDated(?\DateTimeInterface $dated): self
{
$this->dated = $dated;
return $this;
}
public function getDatef(): ?\DateTimeInterface
{
return $this->datef;
}
public function setDatef(?\DateTimeInterface $datef): self
{
$this->datef = $datef;
return $this;
}
public function getNbnuit(): ?int
{
return $this->nbnuit;
}
public function setNbnuit(?int $nbnuit): self
{
$this->nbnuit = $nbnuit;
return $this;
}
public function getNbperso(): ?int
{
return $this->nbperso;
}
public function setNbperso(?int $nbperso): self
{
$this->nbperso = $nbperso;
return $this;
}
public function getDelaiannul(): ?int
{
return $this->delaiannul;
}
public function setDelaiannul(int $delaiannul): self
{
$this->delaiannul = $delaiannul;
return $this;
}
public function getRetro(): ?int
{
return $this->retro;
}
public function setRetro(?int $retro): self
{
$this->retro = $retro;
return $this;
}
public function getRed3lit(): ?float
{
return $this->red3lit;
}
public function setRed3lit(?float $red3lit): self
{
$this->red3lit = $red3lit;
return $this;
}
public function isPers3lit(): ?bool
{
return $this->pers3lit;
}
public function setPers3lit(?bool $pers3lit): self
{
$this->pers3lit = $pers3lit;
return $this;
}
public function getRed4lit(): ?float
{
return $this->red4lit;
}
public function setRed4lit(?float $red4lit): self
{
$this->red4lit = $red4lit;
return $this;
}
public function isPers4lit(): ?bool
{
return $this->pers4lit;
}
public function setPers4lit(?bool $pers4lit): self
{
$this->pers4lit = $pers4lit;
return $this;
}
public function getSupsingle(): ?float
{
return $this->supsingle;
}
public function setSupsingle(?float $supsingle): self
{
$this->supsingle = $supsingle;
return $this;
}
public function isPerssupsingle(): ?bool
{
return $this->perssupsingle;
}
public function setPerssupsingle(?bool $perssupsingle): self
{
$this->perssupsingle = $perssupsingle;
return $this;
}
public function getSupsinglew(): ?float
{
return $this->supsinglew;
}
public function setSupsinglew(?float $supsinglew): self
{
$this->supsinglew = $supsinglew;
return $this;
}
public function isPerssupsinglew(): ?bool
{
return $this->perssupsinglew;
}
public function setPerssupsinglew(?bool $perssupsinglew): self
{
$this->perssupsinglew = $perssupsinglew;
return $this;
}
public function getMargess(): ?float
{
return $this->margess;
}
public function setMargess(?float $margess): self
{
$this->margess = $margess;
return $this;
}
public function isPersss(): ?bool
{
return $this->persss;
}
public function setPersss(?bool $persss): self
{
$this->persss = $persss;
return $this;
}
public function getMargessw(): ?float
{
return $this->margessw;
}
public function setMargessw(?float $margessw): self
{
$this->margessw = $margessw;
return $this;
}
public function isPersssw(): ?bool
{
return $this->persssw;
}
public function setPersssw(?bool $persssw): self
{
$this->persssw = $persssw;
return $this;
}
public function getDcr(): ?\DateTimeInterface
{
return $this->dcr;
}
public function setDcr(?\DateTimeInterface $dcr): self
{
$this->dcr = $dcr;
return $this;
}
public function getDmj(): ?\DateTimeInterface
{
return $this->dmj;
}
public function setDmj(?\DateTimeInterface $dmj): self
{
$this->dmj = $dmj;
return $this;
}
public function getHotel(): ?Hotel
{
return $this->hotel;
}
public function setHotel(?Hotel $hotel): self
{
$this->hotel = $hotel;
return $this;
}
/**
* @return Collection<int, Priceroom>
*/
public function getPricerooms(): Collection
{
return $this->pricerooms;
}
public function addPriceroom(Priceroom $priceroom): self
{
if (!$this->pricerooms->contains($priceroom)) {
$this->pricerooms[] = $priceroom;
$priceroom->setHotelprice($this);
}
return $this;
}
public function removePriceroom(Priceroom $priceroom): self
{
if ($this->pricerooms->removeElement($priceroom)) {
// set the owning side to null (unless already changed)
if ($priceroom->getHotelprice() === $this) {
$priceroom->setHotelprice(null);
}
}
return $this;
}
/**
* @return Collection<int, Pricearrangement>
*/
public function getPricearrangements(): Collection
{
return $this->pricearrangements;
}
public function addPricearrangement(Pricearrangement $pricearrangement): self
{
if (!$this->pricearrangements->contains($pricearrangement)) {
$this->pricearrangements[] = $pricearrangement;
$pricearrangement->setHotelprice($this);
}
return $this;
}
public function removePricearrangement(Pricearrangement $pricearrangement): self
{
if ($this->pricearrangements->removeElement($pricearrangement)) {
// set the owning side to null (unless already changed)
if ($pricearrangement->getHotelprice() === $this) {
$pricearrangement->setHotelprice(null);
}
}
return $this;
}
/**
* @return Collection<int, Pricesupplement>
*/
public function getPricesupplements(): Collection
{
return $this->pricesupplements;
}
public function addPricesupplement(Pricesupplement $pricesupplement): self
{
if (!$this->pricesupplements->contains($pricesupplement)) {
$this->pricesupplements[] = $pricesupplement;
$pricesupplement->setHotelprice($this);
}
return $this;
}
public function removePricesupplement(Pricesupplement $pricesupplement): self
{
if ($this->pricesupplements->removeElement($pricesupplement)) {
// set the owning side to null (unless already changed)
if ($pricesupplement->getHotelprice() === $this) {
$pricesupplement->setHotelprice(null);
}
}
return $this;
}
}