orderShops = new ArrayCollection(); } public function getDuration(): ?int { return $this->duration; } public function setDuration(?int $duration): self { $this->duration = $duration; return $this; } /** * @return Collection|OrderShop[] */ public function getOrderShops(): Collection { return $this->orderShops; } public function addOrderShop(OrderShop $orderShop): self { if (!$this->orderShops->contains($orderShop)) { $this->orderShops[] = $orderShop; $orderShop->setDocumentQuotation($this); } return $this; } public function removeOrderShop(OrderShop $orderShop): self { if ($this->orderShops->contains($orderShop)) { $this->orderShops->removeElement($orderShop); // set the owning side to null (unless already changed) if ($orderShop->getDocumentQuotation() === $this) { $orderShop->setDocumentQuotation(null); } } return $this; } }