src/Entity/TutorNoShowIncident.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TutorNoShowIncidentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=TutorNoShowIncidentRepository::class)
  7. */
  8. class TutorNoShowIncident
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Lesson::class)
  18. * @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
  19. */
  20. private $lesson;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Teacher::class)
  23. * @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
  24. */
  25. private $teacher;
  26. /**
  27. * @ORM\ManyToOne(targetEntity=Child::class)
  28. * @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
  29. */
  30. private $child;
  31. /**
  32. * @ORM\Column(type="string", length=255, nullable=true)
  33. */
  34. private $teacherName;
  35. /**
  36. * @ORM\Column(type="string", length=255, nullable=true)
  37. */
  38. private $teacherIndividualNumber;
  39. /**
  40. * @ORM\Column(type="string", length=255, nullable=true)
  41. */
  42. private $childName;
  43. /**
  44. * @ORM\Column(type="datetime")
  45. */
  46. private $lessonStartTime;
  47. /**
  48. * @ORM\Column(type="datetime")
  49. */
  50. private $recordedAt;
  51. /**
  52. * @ORM\Column(type="integer", nullable=true)
  53. */
  54. private $daysSinceFirstLesson;
  55. public function __construct()
  56. {
  57. $this->recordedAt = new \DateTime();
  58. }
  59. public function getId(): ?int
  60. {
  61. return $this->id;
  62. }
  63. public function getLesson(): ?Lesson
  64. {
  65. return $this->lesson;
  66. }
  67. public function setLesson(?Lesson $lesson): self
  68. {
  69. $this->lesson = $lesson;
  70. return $this;
  71. }
  72. public function getTeacher(): ?Teacher
  73. {
  74. return $this->teacher;
  75. }
  76. public function setTeacher(?Teacher $teacher): self
  77. {
  78. $this->teacher = $teacher;
  79. return $this;
  80. }
  81. public function getChild(): ?Child
  82. {
  83. return $this->child;
  84. }
  85. public function setChild(?Child $child): self
  86. {
  87. $this->child = $child;
  88. return $this;
  89. }
  90. public function getTeacherName(): ?string
  91. {
  92. return $this->teacherName;
  93. }
  94. public function setTeacherName(?string $teacherName): self
  95. {
  96. $this->teacherName = $teacherName;
  97. return $this;
  98. }
  99. public function getTeacherIndividualNumber(): ?string
  100. {
  101. return $this->teacherIndividualNumber;
  102. }
  103. public function setTeacherIndividualNumber(?string $teacherIndividualNumber): self
  104. {
  105. $this->teacherIndividualNumber = $teacherIndividualNumber;
  106. return $this;
  107. }
  108. public function getChildName(): ?string
  109. {
  110. return $this->childName;
  111. }
  112. public function setChildName(?string $childName): self
  113. {
  114. $this->childName = $childName;
  115. return $this;
  116. }
  117. public function getLessonStartTime(): ?\DateTimeInterface
  118. {
  119. return $this->lessonStartTime;
  120. }
  121. public function setLessonStartTime(\DateTimeInterface $lessonStartTime): self
  122. {
  123. $this->lessonStartTime = $lessonStartTime;
  124. return $this;
  125. }
  126. public function getRecordedAt(): ?\DateTimeInterface
  127. {
  128. return $this->recordedAt;
  129. }
  130. public function setRecordedAt(\DateTimeInterface $recordedAt): self
  131. {
  132. $this->recordedAt = $recordedAt;
  133. return $this;
  134. }
  135. public function getDaysSinceFirstLesson(): ?int
  136. {
  137. return $this->daysSinceFirstLesson;
  138. }
  139. public function setDaysSinceFirstLesson(?int $daysSinceFirstLesson): self
  140. {
  141. $this->daysSinceFirstLesson = $daysSinceFirstLesson;
  142. return $this;
  143. }
  144. }