SddBank.php 1.1 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 App\Entity\Core\File;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * Classe ... qui ...
  10. */
  11. // #[Auditable]
  12. #[ORM\Entity]
  13. class SddBank
  14. {
  15. #[ORM\Id]
  16. #[ORM\Column]
  17. #[ORM\GeneratedValue]
  18. private ?int $id = null;
  19. #[ORM\OneToMany(mappedBy: 'sddBank', targetEntity: BillPayment::class, cascade: [], orphanRemoval: false)]
  20. protected Collection $billPayments;
  21. #[ORM\OneToOne(targetEntity: File::class, cascade: ['persist'])]
  22. protected File $file;
  23. public function __construct()
  24. {
  25. }
  26. public function getId(): ?int
  27. {
  28. return $this->id;
  29. }
  30. function getBillPayments(): Collection
  31. {
  32. return $this->billPayments;
  33. }
  34. function setBillPayments(Collection $billPayments): self
  35. {
  36. $this->billPayments = $billPayments;
  37. return $this;
  38. }
  39. function getFile(): File
  40. {
  41. return $this->file;
  42. }
  43. function setFile(File $file): self
  44. {
  45. $this->file = $file;
  46. return $this;
  47. }
  48. }