BillLine.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Billing;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use App\Entity\Access\Access;
  6. use App\Entity\Booking\EducationalProject;
  7. use App\Entity\Product\EquipmentLoan;
  8. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11. * Classe ... qui ...
  12. */
  13. #[ApiResource(operations: [])]
  14. // #[Auditable]
  15. #[ORM\Entity]
  16. class BillLine
  17. {
  18. #[ORM\Id]
  19. #[ORM\Column]
  20. #[ORM\GeneratedValue]
  21. private ?int $id = null;
  22. #[ORM\ManyToOne(inversedBy: 'billLines')]
  23. #[ORM\JoinColumn(nullable: false)]
  24. private AbstractBillAccounting $bill;
  25. #[ORM\ManyToOne(inversedBy: 'billLines')]
  26. private Access $access;
  27. #[ORM\ManyToOne(inversedBy: 'billLines')]
  28. private EducationalProject $educationalProject;
  29. #[ORM\ManyToOne(inversedBy: 'billLines')]
  30. private EquipmentLoan $equipmentLoan;
  31. public function getId(): ?int
  32. {
  33. return $this->id;
  34. }
  35. public function getBill(): ?AbstractBillAccounting
  36. {
  37. return $this->bill;
  38. }
  39. public function setBill(?AbstractBillAccounting $bill): self
  40. {
  41. $this->bill = $bill;
  42. return $this;
  43. }
  44. public function getAccess(): ?Access
  45. {
  46. return $this->access;
  47. }
  48. public function setAccess(?Access $access): self
  49. {
  50. $this->access = $access;
  51. return $this;
  52. }
  53. public function getEducationalProject(): ?EducationalProject
  54. {
  55. return $this->educationalProject;
  56. }
  57. public function setEducationalProject(?EducationalProject $educationalProject): self
  58. {
  59. $this->educationalProject = $educationalProject;
  60. return $this;
  61. }
  62. public function getEquipmentLoan(): ?EquipmentLoan
  63. {
  64. return $this->equipmentLoan;
  65. }
  66. public function setEquipmentLoan(?EquipmentLoan $equipmentLoan): self
  67. {
  68. $this->equipmentLoan = $equipmentLoan;
  69. return $this;
  70. }
  71. }