src/Entity/Establishments.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EstablishmentsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=EstablishmentsRepository::class)
  9.  */
  10. class Establishments
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", nullable=true)
  20.      */
  21.     private $idPunch null;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $name;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $symbol null;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $street null;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $zip null;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $city null;
  42.     /**
  43.      * @ORM\Column(type="float")
  44.      */
  45.     private $tax 0.0;
  46.     /**
  47.      * @ORM\Column(type="datetime")
  48.      */
  49.     private $createdAt;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $numberPhone null;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $emailInfo null;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $emailInvoice null;
  62.     /**
  63.      * @ORM\Column(type="boolean")
  64.      */
  65.     private $deleted false;
  66.     /**
  67.      * @ORM\Column(type="boolean")
  68.      */
  69.     private $validated false;
  70.     /**
  71.      * @ORM\Column(type="boolean")
  72.      */
  73.     private $enableAppMobile true;
  74.     /**
  75.      * @ORM\OneToMany(targetEntity=TypeEstablishment::class, mappedBy="establishment")
  76.      */
  77.     private $typeEstablishments;
  78.     /**
  79.      * @ORM\ManyToOne(targetEntity=EstablishmentStatus::class, inversedBy="establishments")
  80.      */
  81.     private $status;
  82.     /**
  83.      * @ORM\OneToMany(targetEntity=NumberOfCardCustomer::class, mappedBy="establishment")
  84.      */
  85.     private $numberOfCardCustomers;
  86.     /**
  87.      * @ORM\OneToMany(targetEntity=ReferenceUserEstablishment::class, mappedBy="customer")
  88.      */
  89.     private $referenceUserEstablishments;
  90.     /**
  91.      * @ORM\OneToMany(targetEntity=ReferenceUserEstablishment::class, mappedBy="establishment")
  92.      */
  93.     private $leadReferenceUserEstablishments;
  94.     /**
  95.      * @ORM\OneToMany(targetEntity=UserEstablishment::class, mappedBy="establishment")
  96.      */
  97.     private $userEstablishments;
  98.     /**
  99.      * @ORM\OneToMany(targetEntity=Articles::class, mappedBy="supplier")
  100.      */
  101.     private $articles;
  102.     /**
  103.      * @ORM\OneToMany(targetEntity=ShoppingCart::class, mappedBy="establishment")
  104.      */
  105.     private $shoppingCarts;
  106.     /**
  107.      * @ORM\OneToMany(targetEntity=Orders::class, mappedBy="establishment")
  108.      */
  109.     private $orders;
  110.     /**
  111.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="establishments")
  112.      * @ORM\JoinColumn(nullable=true)
  113.      */
  114.     private $responsable;
  115.     /**
  116.      * @ORM\OneToMany(targetEntity=RequestModification::class, mappedBy="company")
  117.      */
  118.     private $requestModifications;
  119.     /**
  120.      * @ORM\ManyToOne(targetEntity=EstablishmentsCategories::class, inversedBy="establishments")
  121.      */
  122.     private $category;
  123.     /**
  124.      * @ORM\Column(type="float", nullable=true)
  125.      */
  126.     private $points;
  127.     /**
  128.      * @ORM\Column(type="string", length=255, nullable=true)
  129.      */
  130.     private $closingDays;
  131.     /**
  132.      * @ORM\Column(type="string", length=255, nullable=true)
  133.      */
  134.     private $deliveryDays;
  135.     /**
  136.      * @ORM\Column(type="string", length=255, nullable=true)
  137.      */
  138.     private $comment;
  139.     /**
  140.      * @ORM\OneToMany(targetEntity=EstablishmentDateVerified::class, mappedBy="establishment")
  141.      */
  142.     private $establishmentDateVerifieds;
  143.     /**
  144.      * Integer from 1 (Monday) to 7 (Sunday)
  145.      * @ORM\Column(type="integer", nullable=true)
  146.      */
  147.     private $deliveryDay null;
  148.     /**
  149.      * @ORM\OneToMany(targetEntity=Favorite::class, mappedBy="Establishment")
  150.      */
  151.     private $favorites;
  152.     /**
  153.      * @ORM\OneToMany(targetEntity=RestrictionArticle::class, mappedBy="client")
  154.      */
  155.     private $restrictionArticles;
  156.     /**
  157.      * @ORM\Column(type="string", length=255, nullable=true)
  158.      */
  159.     private $route null;
  160.     /**
  161.      * @ORM\Column(type="string", length=255, nullable=true)
  162.      */
  163.     private $routeName null;
  164.     /**
  165.      * @ORM\ManyToOne(targetEntity=TarifCategory::class, inversedBy="establishments")
  166.      */
  167.     private $tarifCategory;
  168.     /**
  169.      * @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="establishmentsMaster")
  170.      */
  171.     private $establishmentInvoice;
  172.     /**
  173.      * @ORM\OneToMany(targetEntity=Establishments::class, mappedBy="establishmentInvoice")
  174.      */
  175.     private $establishmentsMaster;
  176.     /**
  177.      * @ORM\Column(type="string", length=255, nullable=true)
  178.      */
  179.     private $deliveryMoment null;
  180.     /**
  181.      * @ORM\Column(type="string", length=255, nullable=true)
  182.      */
  183.     private $orderMoment null;
  184.     /**
  185.      * @ORM\Column(type="string", length=255, nullable=true)
  186.      */
  187.     private $numberOfTax null;
  188.     /**
  189.      * @ORM\Column(type="string", length=255, nullable=true)
  190.      */
  191.     private $responsableIdPunch null;
  192.     /**
  193.      * @ORM\Column(type="datetime", nullable=true)
  194.      */
  195.     private $updatedAt;
  196.     /**
  197.      * @ORM\OneToMany(targetEntity=Invoice::class, mappedBy="establishment")
  198.      */
  199.     private $invoices;
  200.     /**
  201.      * @ORM\OneToMany(targetEntity=ArticleOrderOutOfStock::class, mappedBy="establishment")
  202.      */
  203.     private $articleOrderOutOfStocks;
  204.     /**
  205.      * @ORM\OneToMany(targetEntity=EstablishmentPromo::class, mappedBy="establishment")
  206.      */
  207.     private $establishmentPromos;
  208.     /**
  209.      * @ORM\OneToMany(targetEntity=BackOrder::class, mappedBy="establishment")
  210.      */
  211.     private $backOrders;
  212.     /**
  213.      * @ORM\OneToMany(targetEntity=InvoiceDownloads::class, mappedBy="establishment")
  214.      */
  215.     private $invoiceDownloads;
  216.     /**
  217.      * @ORM\OneToMany(targetEntity=Roles::class, mappedBy="establishment")
  218.      */
  219.     private $roles;
  220.     /**
  221.      * @ORM\OneToMany(targetEntity=Users::class, mappedBy="connectedAt")
  222.      */
  223.     private $usersConnected;
  224.     public function __construct()
  225.     {
  226.         $this->createdAt = new \DateTime();
  227.         $this->updatedAt = new \DateTime();
  228.         $this->typeEstablishments = new ArrayCollection();
  229.         $this->numberOfCardCustomers = new ArrayCollection();
  230.         $this->referenceUserEstablishments = new ArrayCollection();
  231.         $this->leadReferenceUserEstablishments = new ArrayCollection();
  232.         $this->userEstablishments = new ArrayCollection();
  233.         $this->articles = new ArrayCollection();
  234.         $this->shoppingCarts = new ArrayCollection();
  235.         $this->orders = new ArrayCollection();
  236.         $this->requestModifications = new ArrayCollection();
  237.         $this->establishmentDateVerifieds = new ArrayCollection();
  238.         $this->favorites = new ArrayCollection();
  239.         $this->restrictionArticles = new ArrayCollection();
  240.         $this->establishmentsMaster = new ArrayCollection();
  241.         $this->invoices = new ArrayCollection();
  242.         $this->articleOrderOutOfStocks = new ArrayCollection();
  243.         $this->establishmentPromos = new ArrayCollection();
  244.         $this->backOrders = new ArrayCollection();
  245.         $this->invoiceDownloads = new ArrayCollection();
  246.         $this->roles = new ArrayCollection();
  247.         $this->usersConnected = new ArrayCollection();
  248.     }
  249.     public function getId(): ?int
  250.     {
  251.         return $this->id;
  252.     }
  253.     public function getIdPunch(): ?string
  254.     {
  255.         return $this->idPunch;
  256.     }
  257.     public function setIdPunch(?string $idPunch): self
  258.     {
  259.         $this->idPunch $idPunch;
  260.         return $this;
  261.     }
  262.     public function getName(): ?string
  263.     {
  264.         return $this->name;
  265.     }
  266.     public function setName(string $name): self
  267.     {
  268.         $this->name $name;
  269.         return $this;
  270.     }
  271.     public function getSymbol(): ?string
  272.     {
  273.         return $this->symbol;
  274.     }
  275.     public function setSymbol(?string $symbol): self
  276.     {
  277.         $this->symbol $symbol;
  278.         return $this;
  279.     }
  280.     public function getStreet(): ?string
  281.     {
  282.         return $this->street;
  283.     }
  284.     public function setStreet(?string $street): self
  285.     {
  286.         $this->street $street;
  287.         return $this;
  288.     }
  289.     public function getZip(): ?string
  290.     {
  291.         return $this->zip;
  292.     }
  293.     public function setZip(?string $zip): self
  294.     {
  295.         $this->zip $zip;
  296.         return $this;
  297.     }
  298.     public function getCity(): ?string
  299.     {
  300.         return $this->city;
  301.     }
  302.     public function setCity(?string $city): self
  303.     {
  304.         $this->city $city;
  305.         return $this;
  306.     }
  307.     public function getTax(): ?float
  308.     {
  309.         return $this->tax;
  310.     }
  311.     public function setTax(float $tax): self
  312.     {
  313.         $this->tax $tax;
  314.         return $this;
  315.     }
  316.     public function getCreatedAt(): ?\DateTimeInterface
  317.     {
  318.         return $this->createdAt;
  319.     }
  320.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  321.     {
  322.         $this->createdAt $createdAt;
  323.         return $this;
  324.     }
  325.     public function getNumberPhone(): ?string
  326.     {
  327.         return $this->numberPhone;
  328.     }
  329.     public function setNumberPhone(?string $numberPhone): self
  330.     {
  331.         $this->numberPhone $numberPhone;
  332.         return $this;
  333.     }
  334.     public function getEmailInfo(): ?string
  335.     {
  336.         return $this->emailInfo;
  337.     }
  338.     public function setEmailInfo(?string $emailInfo): self
  339.     {
  340.         $this->emailInfo $emailInfo;
  341.         return $this;
  342.     }
  343.     public function getEmailInvoice(): ?string
  344.     {
  345.         return $this->emailInvoice;
  346.     }
  347.     public function setEmailInvoice(?string $emailInvoice): self
  348.     {
  349.         $this->emailInvoice $emailInvoice;
  350.         return $this;
  351.     }
  352.     public function isDeleted(): ?bool
  353.     {
  354.         return $this->deleted;
  355.     }
  356.     public function setDeleted(bool $deleted): self
  357.     {
  358.         $this->deleted $deleted;
  359.         return $this;
  360.     }
  361.     public function isValidated(): ?bool
  362.     {
  363.         return $this->validated;
  364.     }
  365.     public function setValidated(bool $validated): self
  366.     {
  367.         $this->validated $validated;
  368.         return $this;
  369.     }
  370.     public function isEnableAppMobile(): ?bool
  371.     {
  372.         return $this->enableAppMobile;
  373.     }
  374.     public function setEnableAppMobile(bool $enableAppMobile): self
  375.     {
  376.         $this->enableAppMobile $enableAppMobile;
  377.         return $this;
  378.     }
  379.     /**
  380.      * @return Collection<int, TypeEstablishment>
  381.      */
  382.     public function getTypeEstablishments(): Collection
  383.     {
  384.         return $this->typeEstablishments;
  385.     }
  386.     public function addTypeEstablishment(TypeEstablishment $typeEstablishment): self
  387.     {
  388.         if (!$this->typeEstablishments->contains($typeEstablishment)) {
  389.             $this->typeEstablishments[] = $typeEstablishment;
  390.             $typeEstablishment->setEstablishment($this);
  391.         }
  392.         return $this;
  393.     }
  394.     public function removeTypeEstablishment(TypeEstablishment $typeEstablishment): self
  395.     {
  396.         if ($this->typeEstablishments->removeElement($typeEstablishment)) {
  397.             // set the owning side to null (unless already changed)
  398.             if ($typeEstablishment->getEstablishment() === $this) {
  399.                 $typeEstablishment->setEstablishment(null);
  400.             }
  401.         }
  402.         return $this;
  403.     }
  404.     public function getStatus(): ?EstablishmentStatus
  405.     {
  406.         return $this->status;
  407.     }
  408.     public function setStatus(?EstablishmentStatus $status): self
  409.     {
  410.         $this->status $status;
  411.         return $this;
  412.     }
  413.     /**
  414.      * @return Collection<int, NumberOfCardCustomer>
  415.      */
  416.     public function getNumberOfCardCustomers(): Collection
  417.     {
  418.         return $this->numberOfCardCustomers;
  419.     }
  420.     public function addNumberOfCardCustomer(NumberOfCardCustomer $numberOfCardCustomer): self
  421.     {
  422.         if (!$this->numberOfCardCustomers->contains($numberOfCardCustomer)) {
  423.             $this->numberOfCardCustomers[] = $numberOfCardCustomer;
  424.             $numberOfCardCustomer->setEstablishment($this);
  425.         }
  426.         return $this;
  427.     }
  428.     public function removeNumberOfCardCustomer(NumberOfCardCustomer $numberOfCardCustomer): self
  429.     {
  430.         if ($this->numberOfCardCustomers->removeElement($numberOfCardCustomer)) {
  431.             // set the owning side to null (unless already changed)
  432.             if ($numberOfCardCustomer->getEstablishment() === $this) {
  433.                 $numberOfCardCustomer->setEstablishment(null);
  434.             }
  435.         }
  436.         return $this;
  437.     }
  438.     /**
  439.      * @return Collection<int, ReferenceUserEstablishment>
  440.      */
  441.     public function getReferenceUserEstablishments(): Collection
  442.     {
  443.         return $this->referenceUserEstablishments;
  444.     }
  445.     public function addReferenceUserEstablishment(ReferenceUserEstablishment $referenceUserEstablishment): self
  446.     {
  447.         if (!$this->referenceUserEstablishments->contains($referenceUserEstablishment)) {
  448.             $this->referenceUserEstablishments[] = $referenceUserEstablishment;
  449.             $referenceUserEstablishment->setCustomer($this);
  450.         }
  451.         return $this;
  452.     }
  453.     public function removeReferenceUserEstablishment(ReferenceUserEstablishment $referenceUserEstablishment): self
  454.     {
  455.         if ($this->referenceUserEstablishments->removeElement($referenceUserEstablishment)) {
  456.             // set the owning side to null (unless already changed)
  457.             if ($referenceUserEstablishment->getCustomer() === $this) {
  458.                 $referenceUserEstablishment->setCustomer(null);
  459.             }
  460.         }
  461.         return $this;
  462.     }
  463.     /**
  464.      * @return Collection<int, ReferenceUserEstablishment>
  465.      */
  466.     public function getLeadReferenceUserEstablishments(): Collection
  467.     {
  468.         return $this->leadReferenceUserEstablishments;
  469.     }
  470.     public function addLeadReferenceUserEstablishment(ReferenceUserEstablishment $leadReferenceUserEstablishment): self
  471.     {
  472.         if (!$this->leadReferenceUserEstablishments->contains($leadReferenceUserEstablishment)) {
  473.             $this->leadReferenceUserEstablishments[] = $leadReferenceUserEstablishment;
  474.             $leadReferenceUserEstablishment->setEstablishment($this);
  475.         }
  476.         return $this;
  477.     }
  478.     public function removeLeadReferenceUserEstablishment(ReferenceUserEstablishment $leadReferenceUserEstablishment): self
  479.     {
  480.         if ($this->leadReferenceUserEstablishments->removeElement($leadReferenceUserEstablishment)) {
  481.             // set the owning side to null (unless already changed)
  482.             if ($leadReferenceUserEstablishment->getEstablishment() === $this) {
  483.                 $leadReferenceUserEstablishment->setEstablishment(null);
  484.             }
  485.         }
  486.         return $this;
  487.     }
  488.     /**
  489.      * @return Collection<int, UserEstablishment>
  490.      */
  491.     public function getUserEstablishments(): Collection
  492.     {
  493.         return $this->userEstablishments;
  494.     }
  495.     public function addUserEstablishment(UserEstablishment $userEstablishment): self
  496.     {
  497.         if (!$this->userEstablishments->contains($userEstablishment)) {
  498.             $this->userEstablishments[] = $userEstablishment;
  499.             $userEstablishment->setEstablishment($this);
  500.         }
  501.         return $this;
  502.     }
  503.     public function removeUserEstablishment(UserEstablishment $userEstablishment): self
  504.     {
  505.         if ($this->userEstablishments->removeElement($userEstablishment)) {
  506.             // set the owning side to null (unless already changed)
  507.             if ($userEstablishment->getEstablishment() === $this) {
  508.                 $userEstablishment->setEstablishment(null);
  509.             }
  510.         }
  511.         return $this;
  512.     }
  513.     /**
  514.      * @return Collection<int, Articles>
  515.      */
  516.     public function getArticles(): Collection
  517.     {
  518.         return $this->articles;
  519.     }
  520.     public function addArticle(Articles $article): self
  521.     {
  522.         if (!$this->articles->contains($article)) {
  523.             $this->articles[] = $article;
  524.             $article->setSupplier($this);
  525.         }
  526.         return $this;
  527.     }
  528.     public function removeArticle(Articles $article): self
  529.     {
  530.         if ($this->articles->removeElement($article)) {
  531.             // set the owning side to null (unless already changed)
  532.             if ($article->getSupplier() === $this) {
  533.                 $article->setSupplier(null);
  534.             }
  535.         }
  536.         return $this;
  537.     }
  538.     /**
  539.      * @return Collection<int, ShoppingCart>
  540.      */
  541.     public function getShoppingCarts(): Collection
  542.     {
  543.         return $this->shoppingCarts;
  544.     }
  545.     public function addShoppingCart(ShoppingCart $shoppingCart): self
  546.     {
  547.         if (!$this->shoppingCarts->contains($shoppingCart)) {
  548.             $this->shoppingCarts[] = $shoppingCart;
  549.             $shoppingCart->setEstablishment($this);
  550.         }
  551.         return $this;
  552.     }
  553.     public function removeShoppingCart(ShoppingCart $shoppingCart): self
  554.     {
  555.         if ($this->shoppingCarts->removeElement($shoppingCart)) {
  556.             // set the owning side to null (unless already changed)
  557.             if ($shoppingCart->getEstablishment() === $this) {
  558.                 $shoppingCart->setEstablishment(null);
  559.             }
  560.         }
  561.         return $this;
  562.     }
  563.     /**
  564.      * @return Collection<int, Orders>
  565.      */
  566.     public function getOrders(): Collection
  567.     {
  568.         return $this->orders;
  569.     }
  570.     public function getStandardOrders(): ?Orders
  571.     {
  572.         foreach ($this->orders as $order){
  573.             if($order->getStandard()){
  574.                 return $order;
  575.             }
  576.         }
  577.         return null;
  578.     }
  579.     public function addOrder(Orders $order): self
  580.     {
  581.         if (!$this->orders->contains($order)) {
  582.             $this->orders[] = $order;
  583.             $order->setEstablishment($this);
  584.         }
  585.         return $this;
  586.     }
  587.     public function removeOrder(Orders $order): self
  588.     {
  589.         if ($this->orders->removeElement($order)) {
  590.             // set the owning side to null (unless already changed)
  591.             if ($order->getEstablishment() === $this) {
  592.                 $order->setEstablishment(null);
  593.             }
  594.         }
  595.         return $this;
  596.     }
  597.     public function getResponsable(): ?Users
  598.     {
  599.         return $this->responsable;
  600.     }
  601.     public function setResponsable(?Users $responsable): self
  602.     {
  603.         $this->responsable $responsable;
  604.         return $this;
  605.     }
  606.     /**
  607.      * @return Collection<int, RequestModification>
  608.      */
  609.     public function getRequestModifications(): Collection
  610.     {
  611.         return $this->requestModifications;
  612.     }
  613.     public function addRequestModification(RequestModification $requestModification): self
  614.     {
  615.         if (!$this->requestModifications->contains($requestModification)) {
  616.             $this->requestModifications[] = $requestModification;
  617.             $requestModification->setCompany($this);
  618.         }
  619.         return $this;
  620.     }
  621.     public function removeRequestModification(RequestModification $requestModification): self
  622.     {
  623.         if ($this->requestModifications->removeElement($requestModification)) {
  624.             // set the owning side to null (unless already changed)
  625.             if ($requestModification->getCompany() === $this) {
  626.                 $requestModification->setCompany(null);
  627.             }
  628.         }
  629.         return $this;
  630.     }
  631.     public function getCategory(): ?EstablishmentsCategories
  632.     {
  633.         return $this->category;
  634.     }
  635.     public function setCategory(?EstablishmentsCategories $category): self
  636.     {
  637.         $this->category $category;
  638.         return $this;
  639.     }
  640.     public function getPoints(): ?float
  641.     {
  642.         return $this->points;
  643.     }
  644.     public function setPoints(?float $points): self
  645.     {
  646.         $this->points $points;
  647.         return $this;
  648.     }
  649.     public function getClosingDays(): ?string
  650.     {
  651.         return $this->closingDays;
  652.     }
  653.     public function setClosingDays(?string $closingDays): self
  654.     {
  655.         $this->closingDays $closingDays;
  656.         return $this;
  657.     }
  658.     /**
  659.      * @return Collection<int, EstablishmentDateVerified>
  660.      */
  661.     public function getEstablishmentDateVerifieds(): Collection
  662.     {
  663.         return $this->establishmentDateVerifieds;
  664.     }
  665.     public function addEstablishmentDateVerified(EstablishmentDateVerified $establishmentDateVerified): self
  666.     {
  667.         if (!$this->establishmentDateVerifieds->contains($establishmentDateVerified)) {
  668.             $this->establishmentDateVerifieds[] = $establishmentDateVerified;
  669.             $establishmentDateVerified->setEstablishment($this);
  670.         }
  671.         return $this;
  672.     }
  673.     public function getDeliveryDays(): ?string
  674.     {
  675.         return $this->deliveryDays;
  676.     }
  677.     public function setDeliveryDays(?string $deliveryDays): self
  678.     {
  679.         $this->deliveryDays $deliveryDays;
  680.         return $this;
  681.     }
  682.     public function removeEstablishmentDateVerified(EstablishmentDateVerified $establishmentDateVerified): self
  683.     {
  684.         if ($this->establishmentDateVerifieds->removeElement($establishmentDateVerified)) {
  685.             // set the owning side to null (unless already changed)
  686.             if ($establishmentDateVerified->getEstablishment() === $this) {
  687.                 $establishmentDateVerified->setEstablishment(null);
  688.             }
  689.         }
  690.         return $this;
  691.     }
  692.     public function getComment(): ?string
  693.     {
  694.         return $this->comment;
  695.     }
  696.     public function setComment(?string $comment): self
  697.     {
  698.         $this->comment $comment;
  699.         return $this;
  700.     }
  701.     public function getDeliveryDay(): ?int
  702.     {
  703.         return $this->deliveryDay;
  704.     }
  705.     public function setDeliveryDay(?int $deliveryDay): self
  706.     {
  707.         $this->deliveryDay $deliveryDay;
  708.         return $this;
  709.     }
  710.     /**
  711.      * @return Collection<int, Favorite>
  712.      */
  713.     public function getFavorites(): Collection
  714.     {
  715.         return $this->favorites;
  716.     }
  717.     public function addFavorite(Favorite $favorite): self
  718.     {
  719.         if (!$this->favorites->contains($favorite)) {
  720.             $this->favorites[] = $favorite;
  721.             $favorite->setEstablishment($this);
  722.         }
  723.         return $this;
  724.     }
  725.     public function removeFavorite(Favorite $favorite): self
  726.     {
  727.         if ($this->favorites->removeElement($favorite)) {
  728.             // set the owning side to null (unless already changed)
  729.             if ($favorite->getEstablishment() === $this) {
  730.                 $favorite->setEstablishment(null);
  731.             }
  732.         }
  733.         return $this;
  734.     }
  735.     /**
  736.      * @return Collection<int, RestrictionArticle>
  737.      */
  738.     public function getRestrictionArticles(): Collection
  739.     {
  740.         return $this->restrictionArticles;
  741.     }
  742.     public function addRestrictionArticle(RestrictionArticle $restrictionArticle): self
  743.     {
  744.         if (!$this->restrictionArticles->contains($restrictionArticle)) {
  745.             $this->restrictionArticles[] = $restrictionArticle;
  746.             $restrictionArticle->setClient($this);
  747.         }
  748.         return $this;
  749.     }
  750.     public function removeRestrictionArticle(RestrictionArticle $restrictionArticle): self
  751.     {
  752.         if ($this->restrictionArticles->removeElement($restrictionArticle)) {
  753.             // set the owning side to null (unless already changed)
  754.             if ($restrictionArticle->getClient() === $this) {
  755.                 $restrictionArticle->setClient(null);
  756.             }
  757.         }
  758.         return $this;
  759.     }
  760.     public function getRoute(): ?string
  761.     {
  762.         return $this->route;
  763.     }
  764.     public function setRoute(?string $route): self
  765.     {
  766.         $this->route $route;
  767.         return $this;
  768.     }
  769.     public function getRouteName(): ?string
  770.     {
  771.         return $this->routeName;
  772.     }
  773.     public function setRouteName(?string $routeName): self
  774.     {
  775.         $this->routeName $routeName;
  776.         return $this;
  777.     }
  778.     public function getTarifCategory(): ?TarifCategory
  779.     {
  780.         return $this->tarifCategory;
  781.     }
  782.     public function setTarifCategory(?TarifCategory $tarifCategory): self
  783.     {
  784.         $this->tarifCategory $tarifCategory;
  785.         return $this;
  786.     }
  787.     public function getEstablishmentInvoice(): ?self
  788.     {
  789.         return $this->establishmentInvoice;
  790.     }
  791.     public function setEstablishmentInvoice(?self $establishmentInvoice): self
  792.     {
  793.         $this->establishmentInvoice $establishmentInvoice;
  794.         return $this;
  795.     }
  796.     /**
  797.      * @return Collection<int, self>
  798.      */
  799.     public function getEstablishmentsMaster(): Collection
  800.     {
  801.         return $this->establishmentsMaster;
  802.     }
  803.     public function addEstablishmentsMaster(self $establishmentsMaster): self
  804.     {
  805.         if (!$this->establishmentsMaster->contains($establishmentsMaster)) {
  806.             $this->establishmentsMaster[] = $establishmentsMaster;
  807.             $establishmentsMaster->setEstablishmentInvoice($this);
  808.         }
  809.         return $this;
  810.     }
  811.     public function removeEstablishmentsMaster(self $establishmentsMaster): self
  812.     {
  813.         if ($this->establishmentsMaster->removeElement($establishmentsMaster)) {
  814.             // set the owning side to null (unless already changed)
  815.             if ($establishmentsMaster->getEstablishmentInvoice() === $this) {
  816.                 $establishmentsMaster->setEstablishmentInvoice(null);
  817.             }
  818.         }
  819.         return $this;
  820.     }
  821.     public function getDeliveryMoment(): ?string
  822.     {
  823.         return $this->deliveryMoment;
  824.     }
  825.     public function setDeliveryMoment(?string $deliveryMoment): self
  826.     {
  827.         $this->deliveryMoment $deliveryMoment;
  828.         return $this;
  829.     }
  830.     public function getOrderMoment(): ?string
  831.     {
  832.         return $this->orderMoment;
  833.     }
  834.     public function setOrderMoment(?string $orderMoment): self
  835.     {
  836.         $this->orderMoment $orderMoment;
  837.         return $this;
  838.     }
  839.     public function getNumberOfTax(): ?string
  840.     {
  841.         return $this->numberOfTax;
  842.     }
  843.     public function setNumberOfTax(?string $numberOfTax): self
  844.     {
  845.         $this->numberOfTax $numberOfTax;
  846.         return $this;
  847.     }
  848.     public function getResponsableIdPunch(): ?string
  849.     {
  850.         return $this->responsableIdPunch;
  851.     }
  852.     public function setResponsableIdPunch(?string $responsableIdPunch): self
  853.     {
  854.         $this->responsableIdPunch $responsableIdPunch;
  855.         return $this;
  856.     }
  857.     public function getUpdatedAt(): ?\DateTimeInterface
  858.     {
  859.         return $this->updatedAt;
  860.     }
  861.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  862.     {
  863.         $this->updatedAt $updatedAt;
  864.         return $this;
  865.     }
  866.     /**
  867.      * @return Collection<int, Invoice>
  868.      */
  869.     public function getInvoices(): Collection
  870.     {
  871.         return $this->invoices;
  872.     }
  873.     public function addInvoice(Invoice $invoice): self
  874.     {
  875.         if (!$this->invoices->contains($invoice)) {
  876.             $this->invoices[] = $invoice;
  877.             $invoice->setEstablishment($this);
  878.         }
  879.         return $this;
  880.     }
  881.     public function removeInvoice(Invoice $invoice): self
  882.     {
  883.         if ($this->invoices->removeElement($invoice)) {
  884.             // set the owning side to null (unless already changed)
  885.             if ($invoice->getEstablishment() === $this) {
  886.                 $invoice->setEstablishment(null);
  887.             }
  888.         }
  889.         return $this;
  890.     }
  891.     /**
  892.      * @return Collection<int, ArticleOrderOutOfStock>
  893.      */
  894.     public function getArticleOrderOutOfStocks(): Collection
  895.     {
  896.         return $this->articleOrderOutOfStocks;
  897.     }
  898.     public function addArticleOrderOutOfStock(ArticleOrderOutOfStock $articleOrderOutOfStock): self
  899.     {
  900.         if (!$this->articleOrderOutOfStocks->contains($articleOrderOutOfStock)) {
  901.             $this->articleOrderOutOfStocks[] = $articleOrderOutOfStock;
  902.             $articleOrderOutOfStock->setEstablishment($this);
  903.         }
  904.         return $this;
  905.     }
  906.     public function removeArticleOrderOutOfStock(ArticleOrderOutOfStock $articleOrderOutOfStock): self
  907.     {
  908.         if ($this->articleOrderOutOfStocks->removeElement($articleOrderOutOfStock)) {
  909.             // set the owning side to null (unless already changed)
  910.             if ($articleOrderOutOfStock->getEstablishment() === $this) {
  911.                 $articleOrderOutOfStock->setEstablishment(null);
  912.             }
  913.         }
  914.         return $this;
  915.     }
  916.     /**
  917.      * @return Collection<int, EstablishmentPromo>
  918.      */
  919.     public function getEstablishmentPromos(): Collection
  920.     {
  921.         return $this->establishmentPromos;
  922.     }
  923.     public function addEstablishmentPromo(EstablishmentPromo $establishmentPromo): self
  924.     {
  925.         if (!$this->establishmentPromos->contains($establishmentPromo)) {
  926.             $this->establishmentPromos[] = $establishmentPromo;
  927.             $establishmentPromo->setEstablishment($this);
  928.         }
  929.         return $this;
  930.     }
  931.     public function removeEstablishmentPromo(EstablishmentPromo $establishmentPromo): self
  932.     {
  933.         if ($this->establishmentPromos->removeElement($establishmentPromo)) {
  934.             // set the owning side to null (unless already changed)
  935.             if ($establishmentPromo->getEstablishment() === $this) {
  936.                 $establishmentPromo->setEstablishment(null);
  937.             }
  938.         }
  939.         return $this;
  940.     }
  941.     /**
  942.      * @return Collection<int, BackOrder>
  943.      */
  944.     public function getBackOrders(): Collection
  945.     {
  946.         return $this->backOrders;
  947.     }
  948.     public function addBackOrder(BackOrder $backOrder): self
  949.     {
  950.         if (!$this->backOrders->contains($backOrder)) {
  951.             $this->backOrders[] = $backOrder;
  952.             $backOrder->setEstablishment($this);
  953.         }
  954.         return $this;
  955.     }
  956.     public function removeBackOrder(BackOrder $backOrder): self
  957.     {
  958.         if ($this->backOrders->removeElement($backOrder)) {
  959.             // set the owning side to null (unless already changed)
  960.             if ($backOrder->getEstablishment() === $this) {
  961.                 $backOrder->setEstablishment(null);
  962.             }
  963.         }
  964.         return $this;
  965.     }
  966.     /**
  967.      * @return Collection<int, InvoiceDownloads>
  968.      */
  969.     public function getInvoiceDownloads(): Collection
  970.     {
  971.         return $this->invoiceDownloads;
  972.     }
  973.     public function addInvoiceDownload(InvoiceDownloads $invoiceDownload): self
  974.     {
  975.         if (!$this->invoiceDownloads->contains($invoiceDownload)) {
  976.             $this->invoiceDownloads[] = $invoiceDownload;
  977.             $invoiceDownload->setEstablishment($this);
  978.         }
  979.         return $this;
  980.     }
  981.     public function removeInvoiceDownload(InvoiceDownloads $invoiceDownload): self
  982.     {
  983.         if ($this->invoiceDownloads->removeElement($invoiceDownload)) {
  984.             // set the owning side to null (unless already changed)
  985.             if ($invoiceDownload->getEstablishment() === $this) {
  986.                 $invoiceDownload->setEstablishment(null);
  987.             }
  988.         }
  989.         return $this;
  990.     }
  991.     /**
  992.      * @return Collection<int, Roles>
  993.      */
  994.     public function getRoles(): Collection
  995.     {
  996.         return $this->roles;
  997.     }
  998.     public function addRole(Roles $role): self
  999.     {
  1000.         if (!$this->roles->contains($role)) {
  1001.             $this->roles[] = $role;
  1002.             $role->setEstablishment($this);
  1003.         }
  1004.         return $this;
  1005.     }
  1006.     public function removeRole(Roles $role): self
  1007.     {
  1008.         if ($this->roles->removeElement($role)) {
  1009.             // set the owning side to null (unless already changed)
  1010.             if ($role->getEstablishment() === $this) {
  1011.                 $role->setEstablishment(null);
  1012.             }
  1013.         }
  1014.         return $this;
  1015.     }
  1016.     /**
  1017.      * @return Collection<int, Users>
  1018.      */
  1019.     public function getUsersConnected(): Collection
  1020.     {
  1021.         return $this->usersConnected;
  1022.     }
  1023.     public function addUsersConnected(Users $usersConnected): self
  1024.     {
  1025.         if (!$this->usersConnected->contains($usersConnected)) {
  1026.             $this->usersConnected[] = $usersConnected;
  1027.             $usersConnected->setConnectedAt($this);
  1028.         }
  1029.         return $this;
  1030.     }
  1031.     public function removeUsersConnected(Users $usersConnected): self
  1032.     {
  1033.         if ($this->usersConnected->removeElement($usersConnected)) {
  1034.             // set the owning side to null (unless already changed)
  1035.             if ($usersConnected->getConnectedAt() === $this) {
  1036.                 $usersConnected->setConnectedAt(null);
  1037.             }
  1038.         }
  1039.         return $this;
  1040.     }
  1041. }