*/ #[ORM\OneToMany(targetEntity: BillDebitBalance::class, mappedBy: 'billPayment', cascade: ['persist'], orphanRemoval: true)] #[ORM\JoinColumn(nullable: true)] private Collection $billDebitBalances; #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'accountBalanceReimbursements')] #[ORM\JoinColumn(nullable: true)] private ?AccessBilling $accessBillingAccountBalanceReimbursement = null; /** @var Collection */ #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'payments', cascade: ['persist'])] #[ORM\JoinTable(name: 'tag_billPayment')] #[ORM\JoinColumn(name: 'billPayment_id', referencedColumnName: 'id')] #[ORM\InverseJoinColumn(name: 'tag_id', referencedColumnName: 'id')] private Collection $tags; #[ORM\ManyToOne(targetEntity: SddBank::class, cascade: ['persist'], inversedBy: 'billPayments')] #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')] protected SddBank $sddBank; #[ORM\ManyToOne(targetEntity: SddRegie::class, cascade: ['persist'], inversedBy: 'billPayments')] #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')] protected SddRegie $sddRegie; public function __construct() { $this->billDebitBalances = new ArrayCollection(); $this->tags = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getBill(): ?AbstractBillAccounting { return $this->bill; } public function setBill(?AbstractBillAccounting $bill): self { $this->bill = $bill; return $this; } public function getAccessBilling(): ?AccessBilling { return $this->accessBilling; } public function setAccessBilling(?AccessBilling $accessBilling): self { $this->accessBilling = $accessBilling; return $this; } /** * @return Collection */ public function getBillDebitBalances(): Collection { return $this->billDebitBalances; } public function addBillDebitBalance(BillDebitBalance $billDebitBalance): self { if (!$this->billDebitBalances->contains($billDebitBalance)) { $this->billDebitBalances[] = $billDebitBalance; $billDebitBalance->setBillPayment($this); } return $this; } public function removeBillDebitBalance(BillDebitBalance $billDebitBalance): self { if ($this->billDebitBalances->removeElement($billDebitBalance)) { // set the owning side to null (unless already changed) if ($billDebitBalance->getBillPayment() === $this) { $billDebitBalance->setBillPayment(null); } } return $this; } public function getAccessBillingAccountBalanceReimbursement(): ?AccessBilling { return $this->accessBillingAccountBalanceReimbursement; } public function setAccessBillingAccountBalanceReimbursement(?AccessBilling $accessBillingAccountBalanceReimbursement): self { $this->accessBillingAccountBalanceReimbursement = $accessBillingAccountBalanceReimbursement; 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; } public function getSddBank(): SddBank { return $this->sddBank; } public function setSddBank(SddBank $sddBank): self { $this->sddBank = $sddBank; return $this; } public function getSddRegie(): SddRegie { return $this->sddRegie; } public function setSddRegie(SddRegie $sddRegie): self { $this->sddRegie = $sddRegie; return $this; } }