BillDebitBalance.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Billing;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * Classe ... qui ...
  8. */
  9. #[Auditable]
  10. #[ORM\Entity]
  11. class BillDebitBalance
  12. {
  13. #[ORM\Id]
  14. #[ORM\Column]
  15. #[ORM\GeneratedValue]
  16. private ?int $id = null;
  17. #[ORM\ManyToOne(inversedBy: 'billDebitBalances')]
  18. #[ORM\JoinColumn(nullable: false)]
  19. private AccessBilling $accessBilling;
  20. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billDebitBalances')]
  21. #[ORM\JoinColumn(nullable: false)]
  22. private BillPayment $billPayment;
  23. public function getId(): ?int
  24. {
  25. return $this->id;
  26. }
  27. public function getAccessBilling(): ?AccessBilling
  28. {
  29. return $this->accessBilling;
  30. }
  31. public function setAccessBilling(?AccessBilling $accessBilling): self
  32. {
  33. $this->accessBilling = $accessBilling;
  34. return $this;
  35. }
  36. public function getBillPayment(): ?BillPayment
  37. {
  38. return $this->billPayment;
  39. }
  40. public function setBillPayment(?BillPayment $billPayment): self
  41. {
  42. $this->billPayment = $billPayment;
  43. return $this;
  44. }
  45. }