src/Entity/Location.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LocationRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=LocationRepository::class)
  9.  */
  10. class Location
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="datetime")
  20.      */
  21.     private $startAt;
  22.     /**
  23.      * @ORM\Column(type="datetime")
  24.      */
  25.     private $endAt;
  26.     /**
  27.      * @ORM\Column(type="datetime")
  28.      */
  29.     private $createdAt;
  30.     /**
  31.      * @ORM\Column(type="datetime")
  32.      */
  33.     private $updatedAt;
  34.     /**
  35.      * @ORM\Column(type="boolean", nullable=true)
  36.      */
  37.     private $isAccepted;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $raisonRefus;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="locations")
  44.      * @ORM\JoinColumn(nullable=false)
  45.      */
  46.     private $client;
  47.     /**
  48.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="locations", cascade={"persist"})
  49.      * @ORM\JoinColumn(nullable=false)
  50.      */
  51.     private $product;
  52.     /**
  53.      * @ORM\Column(type="string", length=255, nullable=true)
  54.      */
  55.     private $payinId;
  56.     /**
  57.      * @ORM\Column(type="integer", nullable=true)
  58.      */
  59.     private $nbGuests;
  60.     /**
  61.      * @ORM\Column(type="boolean")
  62.      */
  63.     private $isReceived;
  64.     /**
  65.      * @ORM\Column(type="string", length=255, nullable=true)
  66.      */
  67.     private $trackingCode;
  68.     /**
  69.      * @ORM\Column(type="array", nullable=true)
  70.      */
  71.     private $options = [];
  72.     /**
  73.      * @ORM\Column(type="float", nullable=true)
  74.      */
  75.     private $promo;
  76.     /**
  77.      * @ORM\Column(type="string", length=255, nullable=true)
  78.      */
  79.     private $address;
  80.     /**
  81.      * @ORM\Column(type="string", length=255, nullable=true)
  82.      */
  83.     private $postalCode;
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true)
  86.      */
  87.     private $city;
  88.     /**
  89.      * @ORM\Column(type="string", length=255, nullable=true)
  90.      */
  91.     private $color;
  92.     /**
  93.      * @ORM\Column(type="string", length=255, nullable=true)
  94.      */
  95.     private $size;
  96.     /**
  97.      * @ORM\Column(type="integer", nullable=true)
  98.      */
  99.     private $qtAdulte;
  100.     /**
  101.      * @ORM\Column(type="integer", nullable=true)
  102.      */
  103.     private $qtEnfant;
  104.     /**
  105.      * @ORM\Column(type="integer", nullable=true)
  106.      */
  107.     private $qtBebe;
  108.     /**
  109.      * @ORM\Column(type="float", nullable=true)
  110.      */
  111.     private $totalAmount;
  112.     /**
  113.      * @ORM\Column(type="array", nullable=true)
  114.      */
  115.     private $groupOptions = [];
  116.     /**
  117.      * @ORM\Column(type="boolean", nullable=true)
  118.      */
  119.     private $isModifLocation;
  120.     /**
  121.      * @ORM\Column(type="boolean", nullable=true)
  122.      */
  123.     private $isLdefiniModifie;
  124.     /**
  125.      * @ORM\Column(type="boolean", nullable=true)
  126.      */
  127.     private $isLannul;
  128.     /**
  129.      * @ORM\Column(type="boolean", nullable=true)
  130.      */
  131.     private $isLdefiniAnnul;
  132.     /**
  133.      * @ORM\Column(type="datetime", nullable=true)
  134.      */
  135.     private $DateSartUpdate;
  136.     /**
  137.      * @ORM\Column(type="datetime", nullable=true)
  138.      */
  139.     private $dateEndUpdate;
  140.     /**
  141.      * @ORM\Column(type="array", nullable=true)
  142.      */
  143.     private $hebergementGroup = [];
  144.     /**
  145.      * @ORM\Column(type="integer", nullable=true)
  146.      */
  147.     private $taxeSejour;
  148.     /**
  149.      * @ORM\OneToMany(targetEntity=Transfert::class, mappedBy="location")
  150.      */
  151.     private $transferts;
  152.     /**
  153.      * @ORM\OneToMany(targetEntity=Caution::class, mappedBy="location")
  154.      */
  155.     private $cautions;
  156.     /**
  157.      * @ORM\OneToMany(targetEntity=AppFee::class, mappedBy="location")
  158.      */
  159.     private $appFees;
  160.     public function __construct()
  161.     {
  162.         $this->transferts = new ArrayCollection();
  163.         $this->cautions = new ArrayCollection();
  164.         $this->appFees = new ArrayCollection();
  165.     }
  166.     public function getId(): ?int
  167.     {
  168.         return $this->id;
  169.     }
  170.     public function getStartAt(): ?\DateTimeInterface
  171.     {
  172.         return $this->startAt;
  173.     }
  174.     public function setStartAt(\DateTimeInterface $startAt): self
  175.     {
  176.         $this->startAt $startAt;
  177.         return $this;
  178.     }
  179.     public function getEndAt(): ?\DateTimeInterface
  180.     {
  181.         return $this->endAt;
  182.     }
  183.     public function setEndAt(\DateTimeInterface $endAt): self
  184.     {
  185.         $this->endAt $endAt;
  186.         return $this;
  187.     }
  188.     public function getCreatedAt(): ?\DateTimeInterface
  189.     {
  190.         return $this->createdAt;
  191.     }
  192.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  193.     {
  194.         $this->createdAt $createdAt;
  195.         return $this;
  196.     }
  197.     public function getUpdatedAt(): ?\DateTimeInterface
  198.     {
  199.         return $this->updatedAt;
  200.     }
  201.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  202.     {
  203.         $this->updatedAt $updatedAt;
  204.         return $this;
  205.     }
  206.     public function getIsAccepted(): ?bool
  207.     {
  208.         return $this->isAccepted;
  209.     }
  210.     public function setIsAccepted(?bool $isAccepted): self
  211.     {
  212.         $this->isAccepted $isAccepted;
  213.         return $this;
  214.     }
  215.     public function getRaisonRefus(): ?string
  216.     {
  217.         return $this->raisonRefus;
  218.     }
  219.     public function setRaisonRefus(?string $raisonRefus): self
  220.     {
  221.         $this->raisonRefus $raisonRefus;
  222.         return $this;
  223.     }
  224.     public function getClient(): ?User
  225.     {
  226.         return $this->client;
  227.     }
  228.     public function setClient(?User $client): self
  229.     {
  230.         $this->client $client;
  231.         return $this;
  232.     }
  233.     public function getProduct(): ?Product
  234.     {
  235.         return $this->product;
  236.     }
  237.     public function setProduct(?Product $product): self
  238.     {
  239.         $this->product $product;
  240.         return $this;
  241.     }
  242.     public function getPayinId(): ?string
  243.     {
  244.         return $this->payinId;
  245.     }
  246.     public function setPayinId(?string $payinId): self
  247.     {
  248.         $this->payinId $payinId;
  249.         return $this;
  250.     }
  251.     public function getNbGuests(): ?int
  252.     {
  253.         return $this->nbGuests;
  254.     }
  255.     public function setNbGuests(?int $nbGuests): self
  256.     {
  257.         $this->nbGuests $nbGuests;
  258.         return $this;
  259.     }
  260.     public function getIsReceived(): ?bool
  261.     {
  262.         return $this->isReceived;
  263.     }
  264.     public function setIsReceived(bool $isReceived): self
  265.     {
  266.         $this->isReceived $isReceived;
  267.         return $this;
  268.     }
  269.     public function getTrackingCode(): ?string
  270.     {
  271.         return $this->trackingCode;
  272.     }
  273.     public function setTrackingCode(?string $trackingCode): self
  274.     {
  275.         $this->trackingCode $trackingCode;
  276.         return $this;
  277.     }
  278.     public function getOptions(): ?array
  279.     {
  280.         return $this->options;
  281.     }
  282.     public function setOptions(?array $options): self
  283.     {
  284.         $this->options $options;
  285.         return $this;
  286.     }
  287.     public function getPromo(): ?float
  288.     {
  289.         return $this->promo;
  290.     }
  291.     public function setPromo(?float $promo): self
  292.     {
  293.         $this->promo $promo;
  294.         return $this;
  295.     }
  296.     public function getAddress(): ?string
  297.     {
  298.         return $this->address;
  299.     }
  300.     public function setAddress(?string $address): self
  301.     {
  302.         $this->address $address;
  303.         return $this;
  304.     }
  305.     public function getPostalCode(): ?string
  306.     {
  307.         return $this->postalCode;
  308.     }
  309.     public function setPostalCode(?string $postalCode): self
  310.     {
  311.         $this->postalCode $postalCode;
  312.         return $this;
  313.     }
  314.     public function getCity(): ?string
  315.     {
  316.         return $this->city;
  317.     }
  318.     public function setCity(?string $city): self
  319.     {
  320.         $this->city $city;
  321.         return $this;
  322.     }
  323.     public function getColor(): ?string
  324.     {
  325.         return $this->color;
  326.     }
  327.     public function setColor(?string $color): self
  328.     {
  329.         $this->color $color;
  330.         return $this;
  331.     }
  332.     public function getSize(): ?string
  333.     {
  334.         return $this->size;
  335.     }
  336.     public function setSize(?string $size): self
  337.     {
  338.         $this->size $size;
  339.         return $this;
  340.     }
  341.     public function getTotalAmount(): ?float
  342.     {
  343.         return $this->totalAmount;
  344.     }
  345.     public function setTotalAmount(?float $totalAmount): self
  346.     {
  347.         $this->totalAmount $totalAmount;
  348.         return $this;
  349.     }
  350.     public function getGroupOptions(): ?array
  351.     {
  352.         return $this->groupOptions;
  353.     }
  354.     public function setGroupOptions(?array $groupOptions): self
  355.     {
  356.         $this->groupOptions $groupOptions;
  357.         return $this;
  358.     }
  359.     public function getIsModifLocation(): ?bool
  360.     {
  361.         return $this->isModifLocation;
  362.     }
  363.     public function setIsModifLocation(?bool $isModifLocation): self
  364.     {
  365.         $this->isModifLocation $isModifLocation;
  366.         return $this;
  367.     }
  368.     public function getIsLdefiniModifie(): ?bool
  369.     {
  370.         return $this->isLdefiniModifie;
  371.     }
  372.     public function setIsLdefiniModifie(?bool $isLdefiniModifie): self
  373.     {
  374.         $this->isLdefiniModifie $isLdefiniModifie;
  375.         return $this;
  376.     }
  377.     public function getIsLannul(): ?bool
  378.     {
  379.         return $this->isLannul;
  380.     }
  381.     public function setIsLannul(?bool $isLannul): self
  382.     {
  383.         $this->isLannul $isLannul;
  384.         return $this;
  385.     }
  386.     public function getIsLdefiniAnnul(): ?bool
  387.     {
  388.         return $this->isLdefiniAnnul;
  389.     }
  390.     public function setIsLdefiniAnnul(?bool $isLdefiniAnnul): self
  391.     {
  392.         $this->isLdefiniAnnul $isLdefiniAnnul;
  393.         return $this;
  394.     }
  395.     public function getDateSartUpdate(): ?\DateTimeInterface
  396.     {
  397.         return $this->DateSartUpdate;
  398.     }
  399.     public function setDateSartUpdate(?\DateTimeInterface $DateSartUpdate): self
  400.     {
  401.         $this->DateSartUpdate $DateSartUpdate;
  402.         return $this;
  403.     }
  404.     public function getDateEndUpdate(): ?\DateTimeInterface
  405.     {
  406.         return $this->dateEndUpdate;
  407.     }
  408.     public function setDateEndUpdate(?\DateTimeInterface $dateEndUpdate): self
  409.     {
  410.         $this->dateEndUpdate $dateEndUpdate;
  411.         return $this;
  412.     }
  413.     public function getHebergementGroup(): ?array
  414.     {
  415.         return $this->hebergementGroup;
  416.     }
  417.     public function setHebergementGroup(?array $hebergementGroup): self
  418.     {
  419.         $this->hebergementGroup $hebergementGroup;
  420.         return $this;
  421.     }
  422.     public function getQtAdulte(): ?int
  423.     {
  424.         return $this->qtAdulte;
  425.     }
  426.     public function setQtAdulte(?int $qtAdulte): self
  427.     {
  428.         $this->qtAdulte $qtAdulte;
  429.         return $this;
  430.     }
  431.     public function getQtEnfant(): ?int
  432.     {
  433.         return $this->qtEnfant;
  434.     }
  435.     public function setQtEnfant(?int $qtEnfant): self
  436.     {
  437.         $this->qtEnfant $qtEnfant;
  438.         return $this;
  439.     }
  440.     public function getQtBebe(): ?int
  441.     {
  442.         return $this->qtBebe;
  443.     }
  444.     public function setQtBebe(?int $qtBebe): self
  445.     {
  446.         $this->qtBebe $qtBebe;
  447.         return $this;
  448.     }
  449.     public function getTaxeSejour(): ?int
  450.     {
  451.         return $this->taxeSejour;
  452.     }
  453.     public function setTaxeSejour(?int $taxeSejour): self
  454.     {
  455.         $this->taxeSejour $taxeSejour;
  456.         return $this;
  457.     }
  458.     /**
  459.      * @return Collection<int, Transfert>
  460.      */
  461.     public function getTransferts(): Collection
  462.     {
  463.         return $this->transferts;
  464.     }
  465.     public function addTransfert(Transfert $transfert): self
  466.     {
  467.         if (!$this->transferts->contains($transfert)) {
  468.             $this->transferts[] = $transfert;
  469.             $transfert->setLocation($this);
  470.         }
  471.         return $this;
  472.     }
  473.     public function removeTransfert(Transfert $transfert): self
  474.     {
  475.         if ($this->transferts->removeElement($transfert)) {
  476.             // set the owning side to null (unless already changed)
  477.             if ($transfert->getLocation() === $this) {
  478.                 $transfert->setLocation(null);
  479.             }
  480.         }
  481.         return $this;
  482.     }
  483.     /**
  484.      * @return Collection<int, Caution>
  485.      */
  486.     public function getCautions(): Collection
  487.     {
  488.         return $this->cautions;
  489.     }
  490.     public function addCaution(Caution $caution): self
  491.     {
  492.         if (!$this->cautions->contains($caution)) {
  493.             $this->cautions[] = $caution;
  494.             $caution->setLocation($this);
  495.         }
  496.         return $this;
  497.     }
  498.     public function removeCaution(Caution $caution): self
  499.     {
  500.         if ($this->cautions->removeElement($caution)) {
  501.             // set the owning side to null (unless already changed)
  502.             if ($caution->getLocation() === $this) {
  503.                 $caution->setLocation(null);
  504.             }
  505.         }
  506.         return $this;
  507.     }
  508.     /**
  509.      * @return Collection<int, AppFee>
  510.      */
  511.     public function getAppFees(): Collection
  512.     {
  513.         return $this->appFees;
  514.     }
  515.     public function addAppFee(AppFee $appFee): self
  516.     {
  517.         if (!$this->appFees->contains($appFee)) {
  518.             $this->appFees[] = $appFee;
  519.             $appFee->setLocation($this);
  520.         }
  521.         return $this;
  522.     }
  523.     public function removeAppFee(AppFee $appFee): self
  524.     {
  525.         if ($this->appFees->removeElement($appFee)) {
  526.             // set the owning side to null (unless already changed)
  527.             if ($appFee->getLocation() === $this) {
  528.                 $appFee->setLocation(null);
  529.             }
  530.         }
  531.         return $this;
  532.     }
  533. }