<?php
namespace App\Entity;
use App\Repository\SejourpriceRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SejourpriceRepository::class)
*/
class Sejourprice
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $pricebb;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dated;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datef;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dcr;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dmj;
/**
* @ORM\ManyToOne(targetEntity=Sejour::class, inversedBy="sejourprices")
* @ORM\JoinColumn(nullable=false)
*/
private $sejour;
/**
* @ORM\OneToMany(targetEntity=Sejourpriceroom::class, mappedBy="sejourprice", orphanRemoval=true)
*/
private $sejourpricerooms;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $enf252;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $enf6112;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $enf25;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $enf611;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demande252;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demande6112;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demande611;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demande25;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demandebb;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $pack;
public function __construct()
{
$this->sejourpricerooms = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getPricebb(): ?float
{
return $this->pricebb;
}
public function setPricebb(?float $pricebb): self
{
$this->pricebb = $pricebb;
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 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 getSejour(): ?Sejour
{
return $this->sejour;
}
public function setSejour(?Sejour $sejour): self
{
$this->sejour = $sejour;
return $this;
}
/**
* @return Collection<int, Sejourpriceroom>
*/
public function getSejourpricerooms(): Collection
{
return $this->sejourpricerooms;
}
public function addSejourpriceroom(Sejourpriceroom $sejourpriceroom): self
{
if (!$this->sejourpricerooms->contains($sejourpriceroom)) {
$this->sejourpricerooms[] = $sejourpriceroom;
$sejourpriceroom->setSejourprice($this);
}
return $this;
}
public function removeSejourpriceroom(Sejourpriceroom $sejourpriceroom): self
{
if ($this->sejourpricerooms->removeElement($sejourpriceroom)) {
// set the owning side to null (unless already changed)
if ($sejourpriceroom->getSejourprice() === $this) {
$sejourpriceroom->setSejourprice(null);
}
}
return $this;
}
public function getEnf252(): ?float
{
return $this->enf252;
}
public function setEnf252(?float $enf252): self
{
$this->enf252 = $enf252;
return $this;
}
public function getEnf6112(): ?float
{
return $this->enf6112;
}
public function setEnf6112(?float $enf6112): self
{
$this->enf6112 = $enf6112;
return $this;
}
public function getEnf25(): ?float
{
return $this->enf25;
}
public function setEnf25(?float $enf25): self
{
$this->enf25 = $enf25;
return $this;
}
public function getEnf611(): ?float
{
return $this->enf611;
}
public function setEnf611(?float $enf611): self
{
$this->enf611 = $enf611;
return $this;
}
public function isDemande252(): ?bool
{
return $this->demande252;
}
public function setDemande252(?bool $demande252): self
{
$this->demande252 = $demande252;
return $this;
}
public function isDemande6112(): ?bool
{
return $this->demande6112;
}
public function setDemande6112(?bool $demande6112): self
{
$this->demande6112 = $demande6112;
return $this;
}
public function isDemande611(): ?bool
{
return $this->demande611;
}
public function setDemande611(?bool $demande611): self
{
$this->demande611 = $demande611;
return $this;
}
public function isDemande25(): ?bool
{
return $this->demande25;
}
public function setDemande25(?bool $demande25): self
{
$this->demande25 = $demande25;
return $this;
}
public function isDemandebb(): ?bool
{
return $this->demandebb;
}
public function setDemandebb(?bool $demandebb): self
{
$this->demandebb = $demandebb;
return $this;
}
public function getPack(): ?string
{
return $this->pack;
}
public function setPack(?string $pack): self
{
$this->pack = $pack;
return $this;
}
}