PayfipPaymentReturn.php 712 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 PayfipPaymentReturn
  12. {
  13. #[ORM\Id]
  14. #[ORM\Column]
  15. #[ORM\GeneratedValue]
  16. private ?int $id = null;
  17. #[ORM\ManyToOne(cascade: ['persist'])]
  18. #[ORM\JoinColumn(nullable: false)]
  19. private Bill $bill;
  20. public function getId(): ?int
  21. {
  22. return $this->id;
  23. }
  24. public function getBill(): ?Bill
  25. {
  26. return $this->bill;
  27. }
  28. public function setBill(?Bill $bill): self
  29. {
  30. $this->bill = $bill;
  31. return $this;
  32. }
  33. }