src/Entity/Sejour.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SejourRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=SejourRepository::class)
  9.  */
  10. class Sejour
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $libelle;
  22.     /**
  23.      * @ORM\Column(type="date", nullable=true)
  24.      */
  25.     private $dcr;
  26.     /**
  27.      * @ORM\Column(type="boolean", nullable=true)
  28.      */
  29.     private $etat;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $titre;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      */
  37.     private $dureesej;
  38.     /**
  39.      * @ORM\Column(type="float", nullable=true)
  40.      */
  41.     private $prix;
  42.     /**
  43.      * @ORM\Column(type="boolean", nullable=true)
  44.      */
  45.     private $pindex;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Themes::class, inversedBy="sejours")
  48.      */
  49.     private $themes;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $villed;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $voyagecart;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $villea;
  62.     /**
  63.      * @ORM\Column(type="string", length=255, nullable=true)
  64.      */
  65.     private $hotel;
  66.     /**
  67.      * @ORM\Column(type="integer", nullable=true)
  68.      */
  69.     private $nbreetoile;
  70.     /**
  71.      * @ORM\Column(type="integer", nullable=true)
  72.      */
  73.     private $nbreplaces;
  74.     /**
  75.      * @ORM\Column(type="text", nullable=true)
  76.      */
  77.     private $description;
  78.     /**
  79.      * @ORM\ManyToOne(targetEntity=Arrangements::class, inversedBy="sejours")
  80.      */
  81.     private $arrangement;
  82.     /**
  83.      * @ORM\Column(type="float", nullable=true)
  84.      */
  85.     private $prixavance;
  86.     /**
  87.      * @ORM\Column(type="string", length=255, nullable=true)
  88.      */
  89.     private $ageminenf;
  90.     /**
  91.      * @ORM\Column(type="string", length=255, nullable=true)
  92.      */
  93.     private $agemaxenf;
  94.     /**
  95.      * @ORM\Column(type="string", length=255, nullable=true)
  96.      */
  97.     private $ageminbb;
  98.     /**
  99.      * @ORM\Column(type="string", length=255, nullable=true)
  100.      */
  101.     private $agemaxbb;
  102.     /**
  103.      * @ORM\Column(type="float", nullable=true)
  104.      */
  105.     private $marge;
  106.     /**
  107.      * @ORM\Column(type="string", length=255, nullable=true)
  108.      */
  109.     private $maps;
  110.     /**
  111.      * @ORM\Column(type="date", nullable=true)
  112.      */
  113.     private $dated;
  114.     /**
  115.      * @ORM\Column(type="date", nullable=true)
  116.      */
  117.     private $datef;
  118.     /**
  119.      * @ORM\OneToMany(targetEntity=ImageSejours::class, mappedBy="sejours", orphanRemoval=true, cascade={"persist"})
  120.      */
  121.     private $imageSejours;
  122.     /**
  123.      * @ORM\OneToMany(targetEntity=DateSuppSejours::class, mappedBy="sejours", orphanRemoval=true, cascade={"persist"})
  124.      */
  125.     private $dateSuppSejours;
  126.     /**
  127.      * @ORM\OneToMany(targetEntity=Sejourprice::class, mappedBy="sejour", orphanRemoval=true)
  128.      */
  129.     private $sejourprices;
  130.     /**
  131.      * @ORM\OneToMany(targetEntity=Sejourroom::class, mappedBy="sejour", orphanRemoval=true)
  132.      */
  133.     private $sejourrooms;
  134.     /**
  135.      * @ORM\Column(type="text", nullable=true)
  136.      */
  137.     private $serviceinclus;
  138.     /**
  139.      * @ORM\Column(type="text", nullable=true)
  140.      */
  141.     private $servicenoninclus;
  142.     /**
  143.      * @ORM\Column(type="boolean", nullable=true)
  144.      */
  145.     private $latest;
  146.     public function __construct()
  147.     {
  148.         $this->imageSejours = new ArrayCollection();
  149.         $this->dateSuppSejours = new ArrayCollection();
  150.     }
  151.     public function getId(): ?int
  152.     {
  153.         return $this->id;
  154.     }
  155.     public function getLibelle(): ?string
  156.     {
  157.         return $this->libelle;
  158.     }
  159.     public function setLibelle(string $libelle): self
  160.     {
  161.         $this->libelle $libelle;
  162.         return $this;
  163.     }
  164.     public function getDcr(): ?\DateTimeInterface
  165.     {
  166.         return $this->dcr;
  167.     }
  168.     public function setDcr(?\DateTimeInterface $dcr): self
  169.     {
  170.         $this->dcr $dcr;
  171.         return $this;
  172.     }
  173.     public function isEtat(): ?bool
  174.     {
  175.         return $this->etat;
  176.     }
  177.     public function setEtat(?bool $etat): self
  178.     {
  179.         $this->etat $etat;
  180.         return $this;
  181.     }
  182.     public function getTitre(): ?string
  183.     {
  184.         return $this->titre;
  185.     }
  186.     public function setTitre(?string $titre): self
  187.     {
  188.         $this->titre $titre;
  189.         return $this;
  190.     }
  191.     public function getDureesej(): ?int
  192.     {
  193.         return $this->dureesej;
  194.     }
  195.     public function setDureesej(?int $dureesej): self
  196.     {
  197.         $this->dureesej $dureesej;
  198.         return $this;
  199.     }
  200.     public function getPrix(): ?float
  201.     {
  202.         return $this->prix;
  203.     }
  204.     public function setPrix(?float $prix): self
  205.     {
  206.         $this->prix $prix;
  207.         return $this;
  208.     }
  209.     public function isPindex(): ?bool
  210.     {
  211.         return $this->pindex;
  212.     }
  213.     public function setPindex(?bool $pindex): self
  214.     {
  215.         $this->pindex $pindex;
  216.         return $this;
  217.     }
  218.     public function getThemes(): ?Themes
  219.     {
  220.         return $this->themes;
  221.     }
  222.     public function setThemes(?Themes $themes): self
  223.     {
  224.         $this->themes $themes;
  225.         return $this;
  226.     }
  227.     public function getVilled(): ?string
  228.     {
  229.         return $this->villed;
  230.     }
  231.     public function setVilled(?string $villed): self
  232.     {
  233.         $this->villed $villed;
  234.         return $this;
  235.     }
  236.     public function getVoyagecart(): ?string
  237.     {
  238.         return $this->voyagecart;
  239.     }
  240.     public function setVoyagecart(?string $voyagecart): self
  241.     {
  242.         $this->voyagecart $voyagecart;
  243.         return $this;
  244.     }
  245.     public function getVillea(): ?string
  246.     {
  247.         return $this->villea;
  248.     }
  249.     public function setVillea(?string $villea): self
  250.     {
  251.         $this->villea $villea;
  252.         return $this;
  253.     }
  254.     public function getHotel(): ?string
  255.     {
  256.         return $this->hotel;
  257.     }
  258.     public function setHotel(?string $hotel): self
  259.     {
  260.         $this->hotel $hotel;
  261.         return $this;
  262.     }
  263.     public function getNbreetoile(): ?int
  264.     {
  265.         return $this->nbreetoile;
  266.     }
  267.     public function setNbreetoile(?int $nbreetoile): self
  268.     {
  269.         $this->nbreetoile $nbreetoile;
  270.         return $this;
  271.     }
  272.     public function getNbreplaces(): ?int
  273.     {
  274.         return $this->nbreplaces;
  275.     }
  276.     public function setNbreplaces(?int $nbreplaces): self
  277.     {
  278.         $this->nbreplaces $nbreplaces;
  279.         return $this;
  280.     }
  281.     public function getDescription(): ?string
  282.     {
  283.         return $this->description;
  284.     }
  285.     public function setDescription(?string $description): self
  286.     {
  287.         $this->description $description;
  288.         return $this;
  289.     }
  290.     public function getArrangement(): ?Arrangements
  291.     {
  292.         return $this->arrangement;
  293.     }
  294.     public function setArrangement(?Arrangements $arrangement): self
  295.     {
  296.         $this->arrangement $arrangement;
  297.         return $this;
  298.     }
  299.     public function getPrixavance(): ?float
  300.     {
  301.         return $this->prixavance;
  302.     }
  303.     public function setPrixavance(?float $prixavance): self
  304.     {
  305.         $this->prixavance $prixavance;
  306.         return $this;
  307.     }
  308.     public function getAgeminenf(): ?string
  309.     {
  310.         return $this->ageminenf;
  311.     }
  312.     public function setAgeminenf(?string $ageminenf): self
  313.     {
  314.         $this->ageminenf $ageminenf;
  315.         return $this;
  316.     }
  317.     public function getAgemaxenf(): ?string
  318.     {
  319.         return $this->agemaxenf;
  320.     }
  321.     public function setAgemaxenf(?string $agemaxenf): self
  322.     {
  323.         $this->agemaxenf $agemaxenf;
  324.         return $this;
  325.     }
  326.     public function getAgeminbb(): ?string
  327.     {
  328.         return $this->ageminbb;
  329.     }
  330.     public function setAgeminbb(?string $ageminbb): self
  331.     {
  332.         $this->ageminbb $ageminbb;
  333.         return $this;
  334.     }
  335.     public function getAgemaxbb(): ?string
  336.     {
  337.         return $this->agemaxbb;
  338.     }
  339.     public function setAgemaxbb(?string $agemaxbb): self
  340.     {
  341.         $this->agemaxbb $agemaxbb;
  342.         return $this;
  343.     }
  344.     public function getMarge(): ?float
  345.     {
  346.         return $this->marge;
  347.     }
  348.     public function setMarge(?float $marge): self
  349.     {
  350.         $this->marge $marge;
  351.         return $this;
  352.     }
  353.     public function getMaps(): ?string
  354.     {
  355.         return $this->maps;
  356.     }
  357.     public function setMaps(?string $maps): self
  358.     {
  359.         $this->maps $maps;
  360.         return $this;
  361.     }
  362.     public function getDated(): ?\DateTimeInterface
  363.     {
  364.         return $this->dated;
  365.     }
  366.     public function setDated(?\DateTimeInterface $dated): self
  367.     {
  368.         $this->dated $dated;
  369.         return $this;
  370.     }
  371.     public function getDatef(): ?\DateTimeInterface
  372.     {
  373.         return $this->datef;
  374.     }
  375.     public function setDatef(?\DateTimeInterface $datef): self
  376.     {
  377.         $this->datef $datef;
  378.         return $this;
  379.     }
  380.     /**
  381.      * @return Collection<int, ImageSejours>
  382.      */
  383.     public function getImageSejours(): Collection
  384.     {
  385.         return $this->imageSejours;
  386.     }
  387.     public function addImageSejour(ImageSejours $imageSejour): self
  388.     {
  389.         if (!$this->imageSejours->contains($imageSejour)) {
  390.             $this->imageSejours[] = $imageSejour;
  391.             $imageSejour->setSejours($this);
  392.         }
  393.         return $this;
  394.     }
  395.     public function removeImageSejour(ImageSejours $imageSejour): self
  396.     {
  397.         if ($this->imageSejours->removeElement($imageSejour)) {
  398.             // set the owning side to null (unless already changed)
  399.             if ($imageSejour->getSejours() === $this) {
  400.                 $imageSejour->setSejours(null);
  401.             }
  402.         }
  403.         return $this;
  404.     }
  405.     /**
  406.      * @return Collection<int, DateSuppSejours>
  407.      */
  408.     public function getDateSuppSejours(): Collection
  409.     {
  410.         return $this->dateSuppSejours;
  411.     }
  412.     public function addDateSuppSejour(DateSuppSejours $dateSuppSejour): self
  413.     {
  414.         if (!$this->dateSuppSejours->contains($dateSuppSejour)) {
  415.             $this->dateSuppSejours[] = $dateSuppSejour;
  416.             $dateSuppSejour->setSejours($this);
  417.         }
  418.         return $this;
  419.     }
  420.     public function removeDateSuppSejour(DateSuppSejours $dateSuppSejour): self
  421.     {
  422.         if ($this->dateSuppSejours->removeElement($dateSuppSejour)) {
  423.             // set the owning side to null (unless already changed)
  424.             if ($dateSuppSejour->getSejours() === $this) {
  425.                 $dateSuppSejour->setSejours(null);
  426.             }
  427.         }
  428.         return $this;
  429.     }
  430.     public function __toString()
  431.     {
  432.         return (string)$this->titre;
  433.     }
  434.     
  435.     /**
  436.      * @return Collection<int, Sejourprice>
  437.      */
  438.     public function getSejourprices(): Collection
  439.     {
  440.         return $this->sejourprices;
  441.     }
  442.     public function addSejourprice(Sejourprice $sejourprice): self
  443.     {
  444.         if (!$this->sejourprices->contains($sejourprice)) {
  445.             $this->sejourprices[] = $sejourprice;
  446.             $sejourprice->setSejour($this);
  447.         }
  448.         return $this;
  449.     }
  450.     public function removeSejourprice(Sejourprice $sejourprice): self
  451.     {
  452.         if ($this->sejourprices->removeElement($sejourprice)) {
  453.             // set the owning side to null (unless already changed)
  454.             if ($sejourprice->getSejour() === $this) {
  455.                 $sejourprice->setSejour(null);
  456.             }
  457.         }
  458.         return $this;
  459.     }
  460.     /**
  461.      * @return Collection<int, Sejourroom>
  462.      */
  463.     public function getSejourrooms(): Collection
  464.     {
  465.         return $this->sejourrooms;
  466.     }
  467.     public function addSejourroom(Sejourroom $sejourroom): self
  468.     {
  469.         if (!$this->sejourrooms->contains($sejourroom)) {
  470.             $this->sejourrooms[] = $sejourroom;
  471.             $sejourroom->setSejour($this);
  472.         }
  473.         return $this;
  474.     }
  475.     public function removeSejourroom(Sejourroom $sejourroom): self
  476.     {
  477.         if ($this->sejourrooms->removeElement($sejourroom)) {
  478.             // set the owning side to null (unless already changed)
  479.             if ($sejourroom->getSejour() === $this) {
  480.                 $sejourroom->setSejour(null);
  481.             }
  482.         }
  483.         return $this;
  484.     }
  485.     public function getServiceinclus(): ?string
  486.     {
  487.         return $this->serviceinclus;
  488.     }
  489.     public function setServiceinclus(?string $serviceinclus): self
  490.     {
  491.         $this->serviceinclus $serviceinclus;
  492.         return $this;
  493.     }
  494.     public function getServicenoninclus(): ?string
  495.     {
  496.         return $this->servicenoninclus;
  497.     }
  498.     public function setServicenoninclus(?string $servicenoninclus): self
  499.     {
  500.         $this->servicenoninclus $servicenoninclus;
  501.         return $this;
  502.     }
  503.     public function isLatest(): ?bool
  504.     {
  505.         return $this->latest;
  506.     }
  507.     public function setLatest(?bool $latest): self
  508.     {
  509.         $this->latest $latest;
  510.         return $this;
  511.     }
  512. }