BillDebitBalance.php 1.3 KB

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