src/Entity/AbsenceLog.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Repository\AbsenceLogRepository")
  6. */
  7. class AbsenceLog
  8. {
  9. /**
  10. * @ORM\Id()
  11. * @ORM\GeneratedValue()
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\OneToOne(targetEntity="App\Entity\PaidCourseList", inversedBy="absenceLog")
  17. * @ORM\JoinColumn(nullable=false)
  18. */
  19. private $courseToCatchUp;
  20. /**
  21. * @ORM\Column(type="boolean")
  22. */
  23. private $wasCaughtUp;
  24. /**
  25. * @ORM\ManyToOne(targetEntity="App\Entity\SubscriptionOrder", inversedBy="absenceLogs")
  26. */
  27. private $subscription;
  28. /**
  29. * @ORM\ManyToOne(targetEntity="App\Entity\SessionOrder", inversedBy="absenceLogs")
  30. */
  31. private $groupSession;
  32. /*
  33. /**
  34. * @ORM\OneToOne(targetEntity="App\Entity\TeacherSchedule", inversedBy="absenceLog", cascade={"persist", "remove"})
  35. */
  36. //private $catchUpSchedule;
  37. /**
  38. * @ORM\Column(type="datetime", nullable=true)
  39. */
  40. private $catchUpDate;
  41. /**
  42. * @ORM\Column(type="boolean", nullable=true)
  43. */
  44. private $isCanceled;
  45. /**
  46. * @ORM\Column(type="boolean", nullable=true)
  47. */
  48. private $isAbandoned;
  49. /**
  50. * @ORM\ManyToOne(targetEntity="App\Entity\TeacherSchedule", inversedBy="absenceLogs")
  51. */
  52. private $catchUpSchedule;
  53. public function getId(): ?int
  54. {
  55. return $this->id;
  56. }
  57. public function getCourseToCatchUp(): ?PaidCourseList
  58. {
  59. return $this->courseToCatchUp;
  60. }
  61. public function setCourseToCatchUp(?PaidCourseList $courseToCatchUp): self
  62. {
  63. $this->courseToCatchUp = $courseToCatchUp;
  64. return $this;
  65. }
  66. public function getWasCaughtUp(): ?bool
  67. {
  68. return $this->wasCaughtUp;
  69. }
  70. public function setWasCaughtUp(bool $wasCaughtUp): self
  71. {
  72. $this->wasCaughtUp = $wasCaughtUp;
  73. return $this;
  74. }
  75. public function getSubscription(): ?SubscriptionOrder
  76. {
  77. return $this->subscription;
  78. }
  79. public function setSubscription(?SubscriptionOrder $subscription): self
  80. {
  81. $this->subscription = $subscription;
  82. return $this;
  83. }
  84. public function getGroupSession(): ?SessionOrder
  85. {
  86. return $this->groupSession;
  87. }
  88. public function setGroupSession(?SessionOrder $groupSession): self
  89. {
  90. $this->groupSession = $groupSession;
  91. return $this;
  92. }
  93. /*
  94. public function getCatchUpSchedule(): ?TeacherSchedule
  95. {
  96. return $this->catchUpSchedule;
  97. }
  98. public function setCatchUpSchedule(?TeacherSchedule $catchUpSchedule): self
  99. {
  100. $this->catchUpSchedule = $catchUpSchedule;
  101. return $this;
  102. }
  103. */
  104. public function getCatchUpDate(): ?\DateTimeInterface
  105. {
  106. return $this->catchUpDate;
  107. }
  108. public function setCatchUpDate(?\DateTimeInterface $catchUpDate): self
  109. {
  110. $this->catchUpDate = $catchUpDate;
  111. return $this;
  112. }
  113. public function getIsCanceled(): ?bool
  114. {
  115. return $this->isCanceled;
  116. }
  117. public function setIsCanceled(?bool $isCanceled): self
  118. {
  119. $this->isCanceled = $isCanceled;
  120. return $this;
  121. }
  122. public function getIsAbandoned(): ?bool
  123. {
  124. return $this->isAbandoned;
  125. }
  126. public function setIsAbandoned(bool $isAbandoned): self
  127. {
  128. $this->isAbandoned = $isAbandoned;
  129. return $this;
  130. }
  131. public function getCatchUpSchedule(): ?TeacherSchedule
  132. {
  133. return $this->catchUpSchedule;
  134. }
  135. public function setCatchUpSchedule(?TeacherSchedule $catchUpSchedule): self
  136. {
  137. $this->catchUpSchedule = $catchUpSchedule;
  138. return $this;
  139. }
  140. }