AttendanceBooking.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?php
  2. declare (strict_types=1);
  3. namespace App\Entity\Booking;
  4. use ApiPlatform\Metadata\Get;
  5. use ApiPlatform\Metadata\ApiResource;
  6. use App\Entity\Access\Access;
  7. //use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10. * Classe ... qui ...
  11. */
  12. #[ApiResource(operations: [])]
  13. //#[Auditable]
  14. #[ORM\Entity]
  15. class AttendanceBooking
  16. {
  17. #[ORM\Id]
  18. #[ORM\Column]
  19. #[ORM\GeneratedValue]
  20. private ?int $id = null;
  21. #[ORM\ManyToOne(inversedBy: 'attendanceBookings')]
  22. private Access $access;
  23. #[ORM\ManyToOne(inversedBy: 'attendanceBooking')]
  24. private Attendance $attendance;
  25. #[ORM\ManyToOne(inversedBy: 'attendanceBooking')]
  26. private Course $course;
  27. #[ORM\ManyToOne(inversedBy: 'attendanceBooking')]
  28. private EducationalProject $educationalProject;
  29. #[ORM\ManyToOne(inversedBy: 'attendanceBooking')]
  30. private Event $event;
  31. #[ORM\ManyToOne(inversedBy: 'attendanceBooking')]
  32. private Examen $examen;
  33. public function getId(): ?int
  34. {
  35. return $this->id;
  36. }
  37. public function getAccess(): ?Access
  38. {
  39. return $this->access;
  40. }
  41. public function setAccess(?Access $access): self
  42. {
  43. $this->access = $access;
  44. return $this;
  45. }
  46. public function getAttendance(): ?Attendance
  47. {
  48. return $this->attendance;
  49. }
  50. public function setAttendance(?Attendance $attendance): self
  51. {
  52. $this->attendance = $attendance;
  53. return $this;
  54. }
  55. public function getCourse(): ?Course
  56. {
  57. return $this->course;
  58. }
  59. public function setCourse(?Course $course): self
  60. {
  61. $this->course = $course;
  62. return $this;
  63. }
  64. public function getEducationalProject(): ?EducationalProject
  65. {
  66. return $this->educationalProject;
  67. }
  68. public function setEducationalProject(?EducationalProject $educationalProject): self
  69. {
  70. $this->educationalProject = $educationalProject;
  71. return $this;
  72. }
  73. public function getEvent(): ?Event
  74. {
  75. return $this->event;
  76. }
  77. public function setEvent(?Event $event): self
  78. {
  79. $this->event = $event;
  80. return $this;
  81. }
  82. public function getExamen(): ?Examen
  83. {
  84. return $this->examen;
  85. }
  86. public function setExamen(?Examen $examen): self
  87. {
  88. $this->examen = $examen;
  89. return $this;
  90. }
  91. }