src/Entity/Circuit.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CircuitRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=CircuitRepository::class)
  9.  */
  10. class Circuit
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="date", nullable=true)
  20.      */
  21.     private $dated;
  22.     /**
  23.      * @ORM\Column(type="date", nullable=true)
  24.      */
  25.     private $datef;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $libelle;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $type;
  34.     /**
  35.      * @ORM\Column(type="date", nullable=true)
  36.      */
  37.     private $dcr;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $ville;
  42.     /**
  43.      * @ORM\Column(type="integer", nullable=true)
  44.      */
  45.     private $nbreEtoiles;
  46.     /**
  47.      * @ORM\Column(type="float", nullable=true)
  48.      */
  49.     private $prix;
  50.     /**
  51.      * @ORM\Column(type="float", nullable=true)
  52.      */
  53.     private $prixavance;
  54.     /**
  55.      * @ORM\Column(type="float", nullable=true)
  56.      */
  57.     private $marge;
  58.     /**
  59.      * @ORM\Column(type="float", nullable=true)
  60.      */
  61.     private $apartir;
  62.     /**
  63.      * @ORM\Column(type="boolean", nullable=true)
  64.      */
  65.     private $etat;
  66.     /**
  67.      * @ORM\Column(type="boolean", nullable=true)
  68.      */
  69.     private $pindex;
  70.     /**
  71.      * @ORM\Column(type="integer", nullable=true)
  72.      */
  73.     private $nbrejour;
  74.     /**
  75.      * @ORM\Column(type="text", nullable=true)
  76.      */
  77.     private $description;
  78.     /**
  79.      * @ORM\Column(type="integer", nullable=true)
  80.      */
  81.     private $ageminenf;
  82.     /**
  83.      * @ORM\Column(type="integer", nullable=true)
  84.      */
  85.     private $ageminbb;
  86.     /**
  87.      * @ORM\Column(type="integer", nullable=true)
  88.      */
  89.     private $agemaxenf;
  90.     /**
  91.      * @ORM\Column(type="integer", nullable=true)
  92.      */
  93.     private $agemaxbb;
  94.     /**
  95.      * @ORM\Column(type="string", length=255, nullable=true)
  96.      */
  97.     private $maps;
  98.     /**
  99.      * @ORM\OneToMany(targetEntity=Imagescircuits::class, mappedBy="circuits", orphanRemoval=true, cascade={"persist"})
  100.      */
  101.     private $imagescircuits;
  102.     /**
  103.      * @ORM\OneToMany(targetEntity=DateSuppCircuit::class, mappedBy="circuit", orphanRemoval=true, cascade={"persist"})
  104.      */
  105.     private $dateSuppCircuits;
  106.     /**
  107.      * @ORM\OneToMany(targetEntity=Coordonnescircuit::class, mappedBy="circuit", orphanRemoval=true)
  108.      */
  109.     private $coordonnescircuits;
  110.     /**
  111.      * @ORM\OneToMany(targetEntity=Reservationcircuit::class, mappedBy="circuit", orphanRemoval=true)
  112.      */
  113.     private $reservationcircuits;
  114.     /**
  115.      * @ORM\OneToMany(targetEntity=Circuitprice::class, mappedBy="circuit", orphanRemoval=true)
  116.      */
  117.     private $circuitprices;
  118.     /**
  119.      * @ORM\Column(type="text", nullable=true)
  120.      */
  121.     private $serviceinclus;
  122.     /**
  123.      * @ORM\Column(type="text", nullable=true)
  124.      */
  125.     private $servicenoninclus;
  126.     public function __construct()
  127.     {
  128.         $this->imagescircuits = new ArrayCollection();
  129.         $this->dateSuppCircuits = new ArrayCollection();
  130.         $this->coordonnescircuits = new ArrayCollection();
  131.         $this->reservationcircuits = new ArrayCollection();
  132.         $this->circuitprices = new ArrayCollection();
  133.     }
  134.     public function getId(): ?int
  135.     {
  136.         return $this->id;
  137.     }
  138.     public function getDated(): ?\DateTimeInterface
  139.     {
  140.         return $this->dated;
  141.     }
  142.     public function setDated(?\DateTimeInterface $dated): self
  143.     {
  144.         $this->dated $dated;
  145.         return $this;
  146.     }
  147.     public function getDatef(): ?\DateTimeInterface
  148.     {
  149.         return $this->datef;
  150.     }
  151.     public function setDatef(?\DateTimeInterface $datef): self
  152.     {
  153.         $this->datef $datef;
  154.         return $this;
  155.     }
  156.     public function getLibelle(): ?string
  157.     {
  158.         return $this->libelle;
  159.     }
  160.     public function setLibelle(?string $libelle): self
  161.     {
  162.         $this->libelle $libelle;
  163.         return $this;
  164.     }
  165.     public function getType(): ?string
  166.     {
  167.         return $this->type;
  168.     }
  169.     public function setType(?string $type): self
  170.     {
  171.         $this->type $type;
  172.         return $this;
  173.     }
  174.     public function getDcr(): ?\DateTimeInterface
  175.     {
  176.         return $this->dcr;
  177.     }
  178.     public function setDcr(?\DateTimeInterface $dcr): self
  179.     {
  180.         $this->dcr $dcr;
  181.         return $this;
  182.     }
  183.     public function getVille(): ?string
  184.     {
  185.         return $this->ville;
  186.     }
  187.     public function setVille(?string $ville): self
  188.     {
  189.         $this->ville $ville;
  190.         return $this;
  191.     }
  192.     public function getNbreEtoiles(): ?int
  193.     {
  194.         return $this->nbreEtoiles;
  195.     }
  196.     public function setNbreEtoiles(?int $nbreEtoiles): self
  197.     {
  198.         $this->nbreEtoiles $nbreEtoiles;
  199.         return $this;
  200.     }
  201.     public function getPrix(): ?float
  202.     {
  203.         return $this->prix;
  204.     }
  205.     public function setPrix(?float $prix): self
  206.     {
  207.         $this->prix $prix;
  208.         return $this;
  209.     }
  210.     public function getPrixavance(): ?float
  211.     {
  212.         return $this->prixavance;
  213.     }
  214.     public function setPrixavance(?float $prixavance): self
  215.     {
  216.         $this->prixavance $prixavance;
  217.         return $this;
  218.     }
  219.     public function getMarge(): ?float
  220.     {
  221.         return $this->marge;
  222.     }
  223.     public function setMarge(?float $marge): self
  224.     {
  225.         $this->marge $marge;
  226.         return $this;
  227.     }
  228.     public function getApartir(): ?float
  229.     {
  230.         return $this->apartir;
  231.     }
  232.     public function setApartir(?float $apartir): self
  233.     {
  234.         $this->apartir $apartir;
  235.         return $this;
  236.     }
  237.     public function isEtat(): ?bool
  238.     {
  239.         return $this->etat;
  240.     }
  241.     public function setEtat(?bool $etat): self
  242.     {
  243.         $this->etat $etat;
  244.         return $this;
  245.     }
  246.     public function isPindex(): ?bool
  247.     {
  248.         return $this->pindex;
  249.     }
  250.     public function setPindex(?bool $pindex): self
  251.     {
  252.         $this->pindex $pindex;
  253.         return $this;
  254.     }
  255.     public function getNbrejour(): ?int
  256.     {
  257.         return $this->nbrejour;
  258.     }
  259.     public function setNbrejour(?int $nbrejour): self
  260.     {
  261.         $this->nbrejour $nbrejour;
  262.         return $this;
  263.     }
  264.     public function getDescription(): ?string
  265.     {
  266.         return $this->description;
  267.     }
  268.     public function setDescription(?string $description): self
  269.     {
  270.         $this->description $description;
  271.         return $this;
  272.     }
  273.     public function getAgeminenf(): ?int
  274.     {
  275.         return $this->ageminenf;
  276.     }
  277.     public function setAgeminenf(?int $ageminenf): self
  278.     {
  279.         $this->ageminenf $ageminenf;
  280.         return $this;
  281.     }
  282.     public function getAgeminbb(): ?int
  283.     {
  284.         return $this->ageminbb;
  285.     }
  286.     public function setAgeminbb(?int $ageminbb): self
  287.     {
  288.         $this->ageminbb $ageminbb;
  289.         return $this;
  290.     }
  291.     public function getAgemaxenf(): ?int
  292.     {
  293.         return $this->agemaxenf;
  294.     }
  295.     public function setAgemaxenf(?int $agemaxenf): self
  296.     {
  297.         $this->agemaxenf $agemaxenf;
  298.         return $this;
  299.     }
  300.     public function getAgemaxbb(): ?int
  301.     {
  302.         return $this->agemaxbb;
  303.     }
  304.     public function setAgemaxbb(?int $agemaxbb): self
  305.     {
  306.         $this->agemaxbb $agemaxbb;
  307.         return $this;
  308.     }
  309.     public function getMaps(): ?string
  310.     {
  311.         return $this->maps;
  312.     }
  313.     public function setMaps(?string $maps): self
  314.     {
  315.         $this->maps $maps;
  316.         return $this;
  317.     }
  318.     /**
  319.      * @return Collection<int, Imagescircuits>
  320.      */
  321.     public function getImagescircuits(): Collection
  322.     {
  323.         return $this->imagescircuits;
  324.     }
  325.     public function addImagescircuit(Imagescircuits $imagescircuit): self
  326.     {
  327.         if (!$this->imagescircuits->contains($imagescircuit)) {
  328.             $this->imagescircuits[] = $imagescircuit;
  329.             $imagescircuit->setCircuits($this);
  330.         }
  331.         return $this;
  332.     }
  333.     public function removeImagescircuit(Imagescircuits $imagescircuit): self
  334.     {
  335.         if ($this->imagescircuits->removeElement($imagescircuit)) {
  336.             // set the owning side to null (unless already changed)
  337.             if ($imagescircuit->getCircuits() === $this) {
  338.                 $imagescircuit->setCircuits(null);
  339.             }
  340.         }
  341.         return $this;
  342.     }
  343.     public function __toString()
  344.     {
  345.         return (string)$this->libelle;
  346.     }
  347.     /**
  348.      * @return Collection<int, DateSuppCircuit>
  349.      */
  350.     public function getDateSuppCircuits(): Collection
  351.     {
  352.         return $this->dateSuppCircuits;
  353.     }
  354.     public function addDateSuppCircuit(DateSuppCircuit $dateSuppCircuit): self
  355.     {
  356.         if (!$this->dateSuppCircuits->contains($dateSuppCircuit)) {
  357.             $this->dateSuppCircuits[] = $dateSuppCircuit;
  358.             $dateSuppCircuit->setCircuit($this);
  359.         }
  360.         return $this;
  361.     }
  362.     public function removeDateSuppCircuit(DateSuppCircuit $dateSuppCircuit): self
  363.     {
  364.         if ($this->dateSuppCircuits->removeElement($dateSuppCircuit)) {
  365.             // set the owning side to null (unless already changed)
  366.             if ($dateSuppCircuit->getCircuit() === $this) {
  367.                 $dateSuppCircuit->setCircuit(null);
  368.             }
  369.         }
  370.         return $this;
  371.     }
  372.     /**
  373.      * @return Collection<int, Coordonnescircuit>
  374.      */
  375.     public function getCoordonnescircuits(): Collection
  376.     {
  377.         return $this->coordonnescircuits;
  378.     }
  379.     public function addCoordonnescircuit(Coordonnescircuit $coordonnescircuit): self
  380.     {
  381.         if (!$this->coordonnescircuits->contains($coordonnescircuit)) {
  382.             $this->coordonnescircuits[] = $coordonnescircuit;
  383.             $coordonnescircuit->setCircuit($this);
  384.         }
  385.         return $this;
  386.     }
  387.     public function removeCoordonnescircuit(Coordonnescircuit $coordonnescircuit): self
  388.     {
  389.         if ($this->coordonnescircuits->removeElement($coordonnescircuit)) {
  390.             // set the owning side to null (unless already changed)
  391.             if ($coordonnescircuit->getCircuit() === $this) {
  392.                 $coordonnescircuit->setCircuit(null);
  393.             }
  394.         }
  395.         return $this;
  396.     }
  397.     /**
  398.      * @return Collection<int, Reservationcircuit>
  399.      */
  400.     public function getReservationcircuits(): Collection
  401.     {
  402.         return $this->reservationcircuits;
  403.     }
  404.     public function addReservationcircuit(Reservationcircuit $reservationcircuit): self
  405.     {
  406.         if (!$this->reservationcircuits->contains($reservationcircuit)) {
  407.             $this->reservationcircuits[] = $reservationcircuit;
  408.             $reservationcircuit->setCircuit($this);
  409.         }
  410.         return $this;
  411.     }
  412.     public function removeReservationcircuit(Reservationcircuit $reservationcircuit): self
  413.     {
  414.         if ($this->reservationcircuits->removeElement($reservationcircuit)) {
  415.             // set the owning side to null (unless already changed)
  416.             if ($reservationcircuit->getCircuit() === $this) {
  417.                 $reservationcircuit->setCircuit(null);
  418.             }
  419.         }
  420.         return $this;
  421.     }
  422.     /**
  423.      * @return Collection<int, Circuitprice>
  424.      */
  425.     public function getCircuitprices(): Collection
  426.     {
  427.         return $this->circuitprices;
  428.     }
  429.     public function addCircuitprice(Circuitprice $circuitprice): self
  430.     {
  431.         if (!$this->circuitprices->contains($circuitprice)) {
  432.             $this->circuitprices[] = $circuitprice;
  433.             $circuitprice->setCircuit($this);
  434.         }
  435.         return $this;
  436.     }
  437.     public function removeCircuitprice(Circuitprice $circuitprice): self
  438.     {
  439.         if ($this->circuitprices->removeElement($circuitprice)) {
  440.             // set the owning side to null (unless already changed)
  441.             if ($circuitprice->getCircuit() === $this) {
  442.                 $circuitprice->setCircuit(null);
  443.             }
  444.         }
  445.         return $this;
  446.     }
  447.     public function getServiceinclus(): ?string
  448.     {
  449.         return $this->serviceinclus;
  450.     }
  451.     public function setServiceinclus(?string $serviceinclus): self
  452.     {
  453.         $this->serviceinclus $serviceinclus;
  454.         return $this;
  455.     }
  456.     public function getServicenoninclus(): ?string
  457.     {
  458.         return $this->servicenoninclus;
  459.     }
  460.     public function setServicenoninclus(?string $servicenoninclus): self
  461.     {
  462.         $this->servicenoninclus $servicenoninclus;
  463.         return $this;
  464.     }
  465. }