merchants = new ArrayCollection(); $this->pointSaleDayInfos = new ArrayCollection(); $this->userPointSales = new ArrayCollection(); } public function __toString() { return $this->getTitle(); } public function labelAdminChoice() { return $this->getTitle(); } /** * @return Collection|MerchantInterface[] */ public function getMerchants(): Collection { return $this->merchants; } public function addMerchant(MerchantInterface $merchant): self { if (!$this->merchants->contains($merchant)) { $this->merchants[] = $merchant; } return $this; } public function removeMerchant(MerchantInterface $merchant): self { if ($this->merchants->contains($merchant)) { $this->merchants->removeElement($merchant); } return $this; } public function getCode(): ?string { return $this->code; } public function setCode(?string $code): self { $this->code = $code; return $this; } /** * @return Collection|PointSaleDayInfoInterface[] */ public function getPointSaleDayInfos(): Collection { return $this->pointSaleDayInfos; } public function addPointSaleDayInfo(PointSaleDayInfoInterface $pointSaleDayInfo): self { if (!$this->pointSaleDayInfos->contains($pointSaleDayInfo)) { $this->pointSaleDayInfos[] = $pointSaleDayInfo; $pointSaleDayInfo->setPointSale($this); } return $this; } public function removePointSaleDayInfo(PointSaleDayInfoInterface $pointSaleDayInfo): self { if ($this->pointSaleDayInfos->contains($pointSaleDayInfo)) { $this->pointSaleDayInfos->removeElement($pointSaleDayInfo); // set the owning side to null (unless already changed) if ($pointSaleDayInfo->getPointSale() === $this) { $pointSaleDayInfo->setPointSale(null); } } return $this; } public function getAddress(): ?AddressInterface { return $this->address; } public function setAddress(AddressInterface $address): self { $this->address = $address; return $this; } /** * @return Collection|UserPointSaleInterface[] */ public function getUserPointSales(): Collection { return $this->userPointSales; } public function addUserPointSale(UserPointSaleInterface $userPointSale): self { if (!$this->userPointSales->contains($userPointSale)) { $this->userPointSales[] = $userPointSale; $userPointSale->setPointSale($this); } return $this; } public function removeUserPointSale(UserPointSaleInterface $userPointSale): self { if ($this->userPointSales->contains($userPointSale)) { $this->userPointSales->removeElement($userPointSale); // set the owning side to null (unless already changed) if ($userPointSale->getPointSale() === $this) { $userPointSale->setPointSale(null); } } return $this; } }