src/Entity/ChildPreferenceHistory.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChildPreferenceHistoryRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. /**
  9. * @ORM\Entity(repositoryClass=ChildPreferenceHistoryRepository::class)
  10. */
  11. class ChildPreferenceHistory
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\GeneratedValue
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\ManyToOne(targetEntity=Discipline::class, inversedBy="childPreferenceHistories")
  21. * @ORM\JoinColumn(nullable=true)
  22. */
  23. private $discipline;
  24. /**
  25. * @ORM\Column(type="string", length=255, nullable=true)
  26. */
  27. private $amount;
  28. /**
  29. * @ORM\Column(type="string", length=255, nullable=true)
  30. */
  31. private $duration;
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. */
  35. private $type;
  36. /**
  37. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="childPreferenceHistories")
  38. */
  39. private $teacher;
  40. /**
  41. * @ORM\Column(type="text", nullable=true)
  42. */
  43. private $comment;
  44. /**
  45. * @ORM\ManyToOne(targetEntity=Child::class, inversedBy="childPreferenceHistories")
  46. */
  47. private $child;
  48. /**
  49. * @ORM\Column(type="text", nullable=true)
  50. */
  51. private $childPreferenceTimes;
  52. /**
  53. * @ORM\Column(type="text", nullable=true)
  54. */
  55. private $fittingTimes;
  56. /**
  57. * @ORM\Column(type="integer", nullable=true)
  58. */
  59. private $emailDuration;
  60. /**
  61. * @ORM\Column(type="integer", nullable=true)
  62. */
  63. private $singleEmailDuration;
  64. /**
  65. * @ORM\Column(type="datetime", nullable=true)
  66. */
  67. private $startTime;
  68. /**
  69. * @ORM\Column(type="datetime", nullable=true)
  70. */
  71. private $endTime;
  72. /**
  73. * @ORM\Column(type="text", nullable=true)
  74. */
  75. private $deletedBy;
  76. /**
  77. * @ORM\Column(type="text", nullable=true)
  78. */
  79. private $terminateReason;
  80. /**
  81. * @ORM\Column(type="string", length=255, nullable=true)
  82. */
  83. private $teacherChange;
  84. /**
  85. * @ORM\Column(type="string", length=255, nullable=true)
  86. */
  87. private $status;
  88. /**
  89. * @ORM\Column(type="datetime", nullable=true)
  90. */
  91. private $deletedAt;
  92. /**
  93. * @ORM\Column(type="string", length=255, nullable=true)
  94. */
  95. private $action;
  96. /**
  97. * @ORM\Column(type="string", length=255, nullable=true)
  98. */
  99. private $subAction;
  100. /**
  101. * @ORM\Column(type="datetime", nullable=true)
  102. */
  103. private $preferenceCreatedAt;
  104. /**
  105. * @ORM\Column(type="string", length=255, nullable=true)
  106. */
  107. private $tutorTerminateComment;
  108. /**
  109. * @ORM\Column(type="datetime", nullable=true)
  110. */
  111. private $actionAt;
  112. public function __construct()
  113. {
  114. $this->childPreferenceTimes = new ArrayCollection();
  115. }
  116. public function getId(): ?int
  117. {
  118. return $this->id;
  119. }
  120. public function getDiscipline(): ?Discipline
  121. {
  122. return $this->discipline;
  123. }
  124. public function setDiscipline(?Discipline $discipline): self
  125. {
  126. $this->discipline = $discipline;
  127. return $this;
  128. }
  129. public function getAmount(): ?int
  130. {
  131. return $this->amount;
  132. }
  133. public function setAmount($amount): self
  134. {
  135. $this->amount = $amount;
  136. return $this;
  137. }
  138. public function getDuration(): ?int
  139. {
  140. return $this->duration;
  141. }
  142. public function setDuration($duration): self
  143. {
  144. $this->duration = $duration;
  145. return $this;
  146. }
  147. public function getDeletedBy(): ?string
  148. {
  149. return $this->deletedBy;
  150. }
  151. public function setDeletedBy(?string $deletedBy): self
  152. {
  153. $this->deletedBy = $deletedBy;
  154. return $this;
  155. }
  156. public function getType(): ?string
  157. {
  158. return $this->type;
  159. }
  160. public function setType(?string $type): self
  161. {
  162. $this->type = $type;
  163. return $this;
  164. }
  165. public function getTeacher(): ?Teacher
  166. {
  167. return $this->teacher;
  168. }
  169. public function setTeacher(?Teacher $teacher): self
  170. {
  171. $this->teacher = $teacher;
  172. return $this;
  173. }
  174. public function getComment(): ?string
  175. {
  176. return $this->comment;
  177. }
  178. public function setComment(?string $comment): self
  179. {
  180. $this->comment = $comment;
  181. return $this;
  182. }
  183. public function getChild(): ?Child
  184. {
  185. return $this->child;
  186. }
  187. public function setChild(?Child $child): self
  188. {
  189. $this->child = $child;
  190. return $this;
  191. }
  192. public function getChildPreferenceTimes(): string
  193. {
  194. return $this->childPreferenceTimes;
  195. }
  196. public function setChildPreferenceTimes(string $childPreferenceTime): self
  197. {
  198. $this->childPreferenceTimes = $childPreferenceTime;
  199. return $this;
  200. }
  201. public function __toString()
  202. {
  203. return "{$this->child} {$this->id} {$this->discipline}";
  204. }
  205. public function getFittingTimes(): ?string
  206. {
  207. return $this->fittingTimes;
  208. }
  209. public function setFittingTimes(?string $fittingTimes): self
  210. {
  211. $this->fittingTimes = $fittingTimes;
  212. return $this;
  213. }
  214. public function getEmailDuration(): ?int
  215. {
  216. return $this->emailDuration;
  217. }
  218. public function setEmailDuration(?int $emailDuration): self
  219. {
  220. $this->emailDuration = $emailDuration;
  221. return $this;
  222. }
  223. public function getSingleEmailDuration(): ?int
  224. {
  225. return $this->singleEmailDuration;
  226. }
  227. public function setSingleEmailDuration(?int $singleEmailDuration): self
  228. {
  229. $this->singleEmailDuration = $singleEmailDuration;
  230. return $this;
  231. }
  232. public function getStartTime(): ?\DateTimeInterface
  233. {
  234. return $this->startTime;
  235. }
  236. public function setStartTime(?\DateTimeInterface $startTime): self
  237. {
  238. $this->startTime = $startTime;
  239. return $this;
  240. }
  241. public function getEndTime(): ?\DateTimeInterface
  242. {
  243. return $this->endTime;
  244. }
  245. public function setEndTime(?\DateTimeInterface $endTime): self
  246. {
  247. $this->endTime = $endTime;
  248. return $this;
  249. }
  250. public function getTerminateReason(): ?string
  251. {
  252. return $this->terminateReason;
  253. }
  254. public function setTerminateReason(?string $terminateReason): self
  255. {
  256. $this->terminateReason = $terminateReason;
  257. return $this;
  258. }
  259. public function getTeacherChange(): ?string
  260. {
  261. return $this->teacherChange;
  262. }
  263. public function setTeacherChange(?string $teacherChange): self
  264. {
  265. $this->teacherChange = $teacherChange;
  266. return $this;
  267. }
  268. public function getStatus(): ?string
  269. {
  270. return $this->status;
  271. }
  272. public function setStatus(?string $status): self
  273. {
  274. $this->status = $status;
  275. return $this;
  276. }
  277. public function getDeletedAt(): ?\DateTimeInterface
  278. {
  279. return $this->deletedAt;
  280. }
  281. public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  282. {
  283. $this->deletedAt = $deletedAt;
  284. return $this;
  285. }
  286. public function getAction(): ?string
  287. {
  288. return $this->action;
  289. }
  290. public function setAction(?string $action): self
  291. {
  292. $this->action = $action;
  293. return $this;
  294. }
  295. public function getSubAction(): ?string
  296. {
  297. return $this->subAction;
  298. }
  299. public function setSubAction(?string $subAction): self
  300. {
  301. $this->subAction = $subAction;
  302. return $this;
  303. }
  304. public function getPreferenceCreatedAt(): ?\DateTimeInterface
  305. {
  306. return $this->preferenceCreatedAt;
  307. }
  308. public function setPreferenceCreatedAt(?\DateTimeInterface $preferenceCreatedAt): self
  309. {
  310. $this->preferenceCreatedAt = $preferenceCreatedAt;
  311. return $this;
  312. }
  313. public function getTutorTerminateComment(): ?string
  314. {
  315. return $this->tutorTerminateComment;
  316. }
  317. public function setTutorTerminateComment(?string $tutorTerminateComment): self
  318. {
  319. $this->tutorTerminateComment = $tutorTerminateComment;
  320. return $this;
  321. }
  322. public function getActionAt(): ?\DateTimeInterface
  323. {
  324. return $this->actionAt;
  325. }
  326. public function setActionAt(?\DateTimeInterface $actionAt): self
  327. {
  328. $this->actionAt = $actionAt;
  329. return $this;
  330. }
  331. }