src/Entity/LessonLearncubeLog.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LessonLearncubeLogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=LessonLearncubeLogRepository::class)
  7. */
  8. class LessonLearncubeLog
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=255, nullable=true)
  18. */
  19. private $event;
  20. /**
  21. * @ORM\Column(type="string", length=255, nullable=true)
  22. */
  23. private $userType;
  24. /**
  25. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="lessonLearncubeLogs")
  26. */
  27. private $teacher;
  28. /**
  29. * @ORM\ManyToOne(targetEntity=Child::class, inversedBy="lessonLearncubeLogs")
  30. */
  31. private $child;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=true)
  34. */
  35. private $createdAt;
  36. /**
  37. * @ORM\Column(type="text", nullable=true)
  38. */
  39. private $data;
  40. /**
  41. * @ORM\ManyToOne(targetEntity=Lesson::class, inversedBy="lessonLearncubeLogs")
  42. */
  43. private $lesson;
  44. /**
  45. * @ORM\Column(type="text", nullable=true)
  46. */
  47. private $userAgent;
  48. /**
  49. * @ORM\Column(type="string", length=255, nullable=true)
  50. */
  51. private $sessionId;
  52. /**
  53. * @ORM\Column(type="datetime", nullable=true)
  54. */
  55. private $startTime;
  56. /**
  57. * @ORM\Column(type="datetime", nullable=true)
  58. */
  59. private $endTime;
  60. public function __construct()
  61. {
  62. $this->createdAt = new \DateTime();
  63. }
  64. public function getId(): ?int
  65. {
  66. return $this->id;
  67. }
  68. public function getEvent(): ?string
  69. {
  70. return $this->event;
  71. }
  72. public function setEvent(?string $event): self
  73. {
  74. $this->event = $event;
  75. return $this;
  76. }
  77. public function getUserType(): ?string
  78. {
  79. return $this->userType;
  80. }
  81. public function setUserType(?string $userType): self
  82. {
  83. $this->userType = $userType;
  84. return $this;
  85. }
  86. public function getTeacher(): ?Teacher
  87. {
  88. return $this->teacher;
  89. }
  90. public function setTeacher(?Teacher $teacher): self
  91. {
  92. $this->teacher = $teacher;
  93. return $this;
  94. }
  95. public function getChild(): ?Child
  96. {
  97. return $this->child;
  98. }
  99. public function setChild(?Child $child): self
  100. {
  101. $this->child = $child;
  102. return $this;
  103. }
  104. public function getCreatedAt(): ?\DateTimeInterface
  105. {
  106. return $this->createdAt;
  107. }
  108. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  109. {
  110. $this->createdAt = $createdAt;
  111. return $this;
  112. }
  113. public function getData(): ?string
  114. {
  115. return $this->data;
  116. }
  117. public function setData(?string $data): self
  118. {
  119. $this->data = $data;
  120. return $this;
  121. }
  122. public function getLesson(): ?Lesson
  123. {
  124. return $this->lesson;
  125. }
  126. public function setLesson(?Lesson $lesson): self
  127. {
  128. $this->lesson = $lesson;
  129. return $this;
  130. }
  131. public function getUserAgent(): ?string
  132. {
  133. return $this->userAgent;
  134. }
  135. public function setUserAgent(?string $userAgent): self
  136. {
  137. $this->userAgent = $userAgent;
  138. return $this;
  139. }
  140. public function getSessionId(): ?string
  141. {
  142. return $this->sessionId;
  143. }
  144. public function setSessionId(?string $sessionId): self
  145. {
  146. $this->sessionId = $sessionId;
  147. return $this;
  148. }
  149. public function getStartTime(): ?\DateTimeInterface
  150. {
  151. return $this->startTime;
  152. }
  153. public function setStartTime(?\DateTimeInterface $startTime): self
  154. {
  155. $this->startTime = $startTime;
  156. return $this;
  157. }
  158. public function getEndTime(): ?\DateTimeInterface
  159. {
  160. return $this->endTime;
  161. }
  162. public function setEndTime(?\DateTimeInterface $endTime): self
  163. {
  164. $this->endTime = $endTime;
  165. return $this;
  166. }
  167. }