AttendanceBooking.php 2.3 KB

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