src/Entity/Sejourprice.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SejourpriceRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=SejourpriceRepository::class)
  9.  */
  10. class Sejourprice
  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 $pricebb;
  22.     /**
  23.      * @ORM\Column(type="date", nullable=true)
  24.      */
  25.     private $dated;
  26.     /**
  27.      * @ORM\Column(type="date", nullable=true)
  28.      */
  29.     private $datef;
  30.     /**
  31.      * @ORM\Column(type="date", nullable=true)
  32.      */
  33.     private $dcr;
  34.     /**
  35.      * @ORM\Column(type="date", nullable=true)
  36.      */
  37.     private $dmj;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Sejour::class, inversedBy="sejourprices")
  40.      * @ORM\JoinColumn(nullable=false)
  41.      */
  42.     private $sejour;
  43.     /**
  44.      * @ORM\OneToMany(targetEntity=Sejourpriceroom::class, mappedBy="sejourprice", orphanRemoval=true)
  45.      */
  46.     private $sejourpricerooms;
  47.     /**
  48.      * @ORM\Column(type="float", nullable=true)
  49.      */
  50.     private $enf252;
  51.     /**
  52.      * @ORM\Column(type="float", nullable=true)
  53.      */
  54.     private $enf6112;
  55.     /**
  56.      * @ORM\Column(type="float", nullable=true)
  57.      */
  58.     private $enf25;
  59.     /**
  60.      * @ORM\Column(type="float", nullable=true)
  61.      */
  62.     private $enf611;
  63.     /**
  64.      * @ORM\Column(type="boolean", nullable=true)
  65.      */
  66.     private $demande252;
  67.     /**
  68.      * @ORM\Column(type="boolean", nullable=true)
  69.      */
  70.     private $demande6112;
  71.     /**
  72.      * @ORM\Column(type="boolean", nullable=true)
  73.      */
  74.     private $demande611;
  75.     /**
  76.      * @ORM\Column(type="boolean", nullable=true)
  77.      */
  78.     private $demande25;
  79.     /**
  80.      * @ORM\Column(type="boolean", nullable=true)
  81.      */
  82.     private $demandebb;
  83.     /**
  84.      * @ORM\Column(type="string", length=255, nullable=true)
  85.      */
  86.     private $pack;
  87.     public function __construct()
  88.     {
  89.         $this->sejourpricerooms = new ArrayCollection();
  90.     }
  91.     public function getId(): ?int
  92.     {
  93.         return $this->id;
  94.     }
  95.     public function getPricebb(): ?float
  96.     {
  97.         return $this->pricebb;
  98.     }
  99.     public function setPricebb(?float $pricebb): self
  100.     {
  101.         $this->pricebb $pricebb;
  102.         return $this;
  103.     }
  104.     public function getDated(): ?\DateTimeInterface
  105.     {
  106.         return $this->dated;
  107.     }
  108.     public function setDated(?\DateTimeInterface $dated): self
  109.     {
  110.         $this->dated $dated;
  111.         return $this;
  112.     }
  113.     public function getDatef(): ?\DateTimeInterface
  114.     {
  115.         return $this->datef;
  116.     }
  117.     public function setDatef(?\DateTimeInterface $datef): self
  118.     {
  119.         $this->datef $datef;
  120.         return $this;
  121.     }
  122.     public function getDcr(): ?\DateTimeInterface
  123.     {
  124.         return $this->dcr;
  125.     }
  126.     public function setDcr(?\DateTimeInterface $dcr): self
  127.     {
  128.         $this->dcr $dcr;
  129.         return $this;
  130.     }
  131.     public function getDmj(): ?\DateTimeInterface
  132.     {
  133.         return $this->dmj;
  134.     }
  135.     public function setDmj(?\DateTimeInterface $dmj): self
  136.     {
  137.         $this->dmj $dmj;
  138.         return $this;
  139.     }
  140.     public function getSejour(): ?Sejour
  141.     {
  142.         return $this->sejour;
  143.     }
  144.     public function setSejour(?Sejour $sejour): self
  145.     {
  146.         $this->sejour $sejour;
  147.         return $this;
  148.     }
  149.     /**
  150.      * @return Collection<int, Sejourpriceroom>
  151.      */
  152.     public function getSejourpricerooms(): Collection
  153.     {
  154.         return $this->sejourpricerooms;
  155.     }
  156.     public function addSejourpriceroom(Sejourpriceroom $sejourpriceroom): self
  157.     {
  158.         if (!$this->sejourpricerooms->contains($sejourpriceroom)) {
  159.             $this->sejourpricerooms[] = $sejourpriceroom;
  160.             $sejourpriceroom->setSejourprice($this);
  161.         }
  162.         return $this;
  163.     }
  164.     public function removeSejourpriceroom(Sejourpriceroom $sejourpriceroom): self
  165.     {
  166.         if ($this->sejourpricerooms->removeElement($sejourpriceroom)) {
  167.             // set the owning side to null (unless already changed)
  168.             if ($sejourpriceroom->getSejourprice() === $this) {
  169.                 $sejourpriceroom->setSejourprice(null);
  170.             }
  171.         }
  172.         return $this;
  173.     }
  174.     public function getEnf252(): ?float
  175.     {
  176.         return $this->enf252;
  177.     }
  178.     public function setEnf252(?float $enf252): self
  179.     {
  180.         $this->enf252 $enf252;
  181.         return $this;
  182.     }
  183.     public function getEnf6112(): ?float
  184.     {
  185.         return $this->enf6112;
  186.     }
  187.     public function setEnf6112(?float $enf6112): self
  188.     {
  189.         $this->enf6112 $enf6112;
  190.         return $this;
  191.     }
  192.     public function getEnf25(): ?float
  193.     {
  194.         return $this->enf25;
  195.     }
  196.     public function setEnf25(?float $enf25): self
  197.     {
  198.         $this->enf25 $enf25;
  199.         return $this;
  200.     }
  201.     public function getEnf611(): ?float
  202.     {
  203.         return $this->enf611;
  204.     }
  205.     public function setEnf611(?float $enf611): self
  206.     {
  207.         $this->enf611 $enf611;
  208.         return $this;
  209.     }
  210.     public function isDemande252(): ?bool
  211.     {
  212.         return $this->demande252;
  213.     }
  214.     public function setDemande252(?bool $demande252): self
  215.     {
  216.         $this->demande252 $demande252;
  217.         return $this;
  218.     }
  219.     public function isDemande6112(): ?bool
  220.     {
  221.         return $this->demande6112;
  222.     }
  223.     public function setDemande6112(?bool $demande6112): self
  224.     {
  225.         $this->demande6112 $demande6112;
  226.         return $this;
  227.     }
  228.     public function isDemande611(): ?bool
  229.     {
  230.         return $this->demande611;
  231.     }
  232.     public function setDemande611(?bool $demande611): self
  233.     {
  234.         $this->demande611 $demande611;
  235.         return $this;
  236.     }
  237.     public function isDemande25(): ?bool
  238.     {
  239.         return $this->demande25;
  240.     }
  241.     public function setDemande25(?bool $demande25): self
  242.     {
  243.         $this->demande25 $demande25;
  244.         return $this;
  245.     }
  246.     public function isDemandebb(): ?bool
  247.     {
  248.         return $this->demandebb;
  249.     }
  250.     public function setDemandebb(?bool $demandebb): self
  251.     {
  252.         $this->demandebb $demandebb;
  253.         return $this;
  254.     }
  255.     public function getPack(): ?string
  256.     {
  257.         return $this->pack;
  258.     }
  259.     public function setPack(?string $pack): self
  260.     {
  261.         $this->pack $pack;
  262.         return $this;
  263.     }
  264. }