billLines = new ArrayCollection(); $this->billCredits = new ArrayCollection(); $this->billPayments = new ArrayCollection(); $this->billingIntangibleExcludeDates = new ArrayCollection(); $this->tags = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getOrganization(): ?Organization { return $this->organization; } public function setOrganization(?Organization $organization): self { $this->organization = $organization; return $this; } /** * @return Collection */ public function getBillLines(): Collection { return $this->billLines; } public function addBillLine(BillLine $billLine): self { if (!$this->billLines->contains($billLine)) { $this->billLines[] = $billLine; $billLine->setBill($this); } return $this; } public function removeBillLine(BillLine $billLine): self { if ($this->billLines->removeElement($billLine)) { // set the owning side to null (unless already changed) if ($billLine->getBill() === $this) { $billLine->setBill(null); } } return $this; } /** * @return Collection */ public function getBillCredits(): Collection { return $this->billCredits; } public function addBillCredit(BillCredit $billCredit): self { if (!$this->billCredits->contains($billCredit)) { $this->billCredits[] = $billCredit; $billCredit->setBill($this); } return $this; } public function removeBillCredit(BillCredit $billCredit): self { if ($this->billCredits->removeElement($billCredit)) { // set the owning side to null (unless already changed) if ($billCredit->getBill() === $this) { $billCredit->setBill(null); } } return $this; } /** * @return Collection */ public function getBillPayments(): Collection { return $this->billPayments; } public function addBillPayment(BillPayment $billPayment): self { if (!$this->billPayments->contains($billPayment)) { $this->billPayments[] = $billPayment; $billPayment->setBill($this); } return $this; } public function removeBillPayment(BillPayment $billPayment): self { if ($this->billPayments->removeElement($billPayment)) { // set the owning side to null (unless already changed) if ($billPayment->getBill() === $this) { $billPayment->setBill(null); } } return $this; } public function getBill(): ?self { return $this->bill; } public function setBill(?self $bill): self { $this->bill = $bill; return $this; } /** * @return Collection */ public function getBillingIntangibleExcludeDates(): Collection { return $this->billingIntangibleExcludeDates; } public function addBillingIntangibleExcludeDate(BillingIntangibleExcludeDate $billingIntangibleExcludeDate): self { if (!$this->billingIntangibleExcludeDates->contains($billingIntangibleExcludeDate)) { $this->billingIntangibleExcludeDates[] = $billingIntangibleExcludeDate; /** @phpstan-ignore-next-line */ $billingIntangibleExcludeDate->setBill($this); } return $this; } public function removeBillingIntangibleExcludeDate(BillingIntangibleExcludeDate $billingIntangibleExcludeDate): self { if ($this->billingIntangibleExcludeDates->removeElement($billingIntangibleExcludeDate)) { // set the owning side to null (unless already changed) if ($billingIntangibleExcludeDate->getBill() === $this) { $billingIntangibleExcludeDate->setBill(null); } } return $this; } public function getPes(): ?Pes { return $this->pes; } public function setPes(?Pes $pes): self { $this->pes = $pes; return $this; } public function getBergerLevrault(): ?BergerLevrault { return $this->bergerLevrault; } public function setBergerLevrault(?BergerLevrault $bergerLevrault): self { $this->bergerLevrault = $bergerLevrault; return $this; } public function getCiril(): ?Ciril { return $this->ciril; } public function setCiril(?Ciril $ciril): self { $this->ciril = $ciril; return $this; } public function getJvs(): ?Jvs { return $this->jvs; } public function setJvs(?Jvs $jvs): self { $this->jvs = $jvs; return $this; } /** * @return Collection */ public function getTags(): Collection { return $this->tags; } public function addTag(Tagg $tag): self { if (!$this->tags->contains($tag)) { $this->tags[] = $tag; } return $this; } public function removeTag(Tagg $tag): self { $this->tags->removeElement($tag); return $this; } }