src/Entity/SubscriptionLessonReport.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass="App\Repository\SubscriptionLessonReportRepository")
  8. */
  9. class SubscriptionLessonReport
  10. {
  11. /**
  12. * @ORM\Id()
  13. * @ORM\GeneratedValue()
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\OneToOne(targetEntity="App\Entity\PaidCourseList", inversedBy="subscriptionLessonReport", cascade={"persist"})
  19. */
  20. private $courseDate;
  21. /**
  22. * @ORM\ManyToOne(targetEntity="App\Entity\SubscriptionOrder", inversedBy="subscriptionLessonReports")
  23. * @ORM\JoinColumn(nullable=false)
  24. */
  25. private $subscription;
  26. /**
  27. * @ORM\Column(type="boolean")
  28. */
  29. private $onTime;
  30. /**
  31. * @ORM\Column(type="string", length=50, nullable=true)
  32. */
  33. private $revision;
  34. /**
  35. * @ORM\Column(type="string", length=50, nullable=true)
  36. */
  37. private $oral;
  38. /**
  39. * @ORM\Column(type="string", length=50, nullable=true)
  40. */
  41. private $reading;
  42. /**
  43. * @ORM\Column(type="string", length=50, nullable=true)
  44. */
  45. private $comprehension;
  46. /**
  47. * @ORM\Column(type="string", length=50, nullable=true)
  48. */
  49. private $grammar;
  50. /**
  51. * @ORM\Column(type="string", length=50, nullable=true)
  52. */
  53. private $dictation;
  54. /**
  55. * @ORM\Column(type="string", length=50, nullable=true)
  56. */
  57. private $participation;
  58. /**
  59. * @ORM\Column(type="boolean")
  60. */
  61. private $isTechnicalPb;
  62. /**
  63. * @ORM\Column(type="text", nullable=true)
  64. */
  65. private $studiedToday;
  66. /**
  67. * @ORM\Column(type="string", length=255, nullable=true)
  68. */
  69. private $homework;
  70. /**
  71. * @ORM\Column(type="text", nullable=true)
  72. */
  73. private $comment;
  74. /**
  75. * @ORM\Column(type="string", length=255, nullable=true)
  76. */
  77. private $memorizing;
  78. /**
  79. * @ORM\Column(type="string", length=50, nullable=true)
  80. */
  81. private $memorizingLevel;
  82. /**
  83. * @ORM\Column(type="string", length=255, nullable=true)
  84. */
  85. private $coranRevision;
  86. /**
  87. * @ORM\Column(type="string", length=50, nullable=true)
  88. */
  89. private $coranRevisionLevel;
  90. /**
  91. * @ORM\Column(type="string", length=255, nullable=true)
  92. */
  93. private $newSourate;
  94. /**
  95. * @ORM\OneToMany(targetEntity="App\Entity\ReportFiles", mappedBy="report", cascade={"persist"})
  96. */
  97. private $reportFiles;
  98. /**
  99. * @ORM\Column(type="string", length=255, nullable=true)
  100. */
  101. private $newRevision;
  102. /**
  103. * @ORM\Column(type="datetime", nullable=true)
  104. */
  105. private $sentAt;
  106. /**
  107. * @ORM\Column(type="datetime", nullable=true)
  108. */
  109. private $editAt;
  110. public function __construct()
  111. {
  112. $this->reportFiles = new ArrayCollection();
  113. }
  114. public function getId(): ?int
  115. {
  116. return $this->id;
  117. }
  118. public function getCourseDate(): ?PaidCourseList
  119. {
  120. return $this->courseDate;
  121. }
  122. public function setCourseDate(?PaidCourseList $courseDate): self
  123. {
  124. $this->courseDate = $courseDate;
  125. return $this;
  126. }
  127. public function getSubscription(): ?SubscriptionOrder
  128. {
  129. return $this->subscription;
  130. }
  131. public function setSubscription(?SubscriptionOrder $subscription): self
  132. {
  133. $this->subscription = $subscription;
  134. return $this;
  135. }
  136. public function getOnTime(): ?bool
  137. {
  138. return $this->onTime;
  139. }
  140. public function setOnTime(bool $onTime): self
  141. {
  142. $this->onTime = $onTime;
  143. return $this;
  144. }
  145. public function getRevision(): ?string
  146. {
  147. return $this->revision;
  148. }
  149. public function setRevision(?string $revision): self
  150. {
  151. $this->revision = $revision;
  152. return $this;
  153. }
  154. public function getOral(): ?string
  155. {
  156. return $this->oral;
  157. }
  158. public function setOral(?string $oral): self
  159. {
  160. $this->oral = $oral;
  161. return $this;
  162. }
  163. public function getReading(): ?string
  164. {
  165. return $this->reading;
  166. }
  167. public function setReading(?string $reading): self
  168. {
  169. $this->reading = $reading;
  170. return $this;
  171. }
  172. public function getComprehension(): ?string
  173. {
  174. return $this->comprehension;
  175. }
  176. public function setComprehension(?string $comprehension): self
  177. {
  178. $this->comprehension = $comprehension;
  179. return $this;
  180. }
  181. public function getGrammar(): ?string
  182. {
  183. return $this->grammar;
  184. }
  185. public function setGrammar(?string $grammar): self
  186. {
  187. $this->grammar = $grammar;
  188. return $this;
  189. }
  190. public function getDictation(): ?string
  191. {
  192. return $this->dictation;
  193. }
  194. public function setDictation(?string $dictation): self
  195. {
  196. $this->dictation = $dictation;
  197. return $this;
  198. }
  199. public function getParticipation(): ?string
  200. {
  201. return $this->participation;
  202. }
  203. public function setParticipation(?string $participation): self
  204. {
  205. $this->participation = $participation;
  206. return $this;
  207. }
  208. public function getIsTechnicalPb(): ?bool
  209. {
  210. return $this->isTechnicalPb;
  211. }
  212. public function setIsTechnicalPb(bool $isTechnicalPb): self
  213. {
  214. $this->isTechnicalPb = $isTechnicalPb;
  215. return $this;
  216. }
  217. public function getStudiedToday(): ?string
  218. {
  219. return $this->studiedToday;
  220. }
  221. public function setStudiedToday(?string $studiedToday): self
  222. {
  223. $this->studiedToday = $studiedToday;
  224. return $this;
  225. }
  226. public function getHomework(): ?string
  227. {
  228. return $this->homework;
  229. }
  230. public function setHomework(?string $homework): self
  231. {
  232. $this->homework = $homework;
  233. return $this;
  234. }
  235. public function getComment(): ?string
  236. {
  237. return $this->comment;
  238. }
  239. public function setComment(?string $comment): self
  240. {
  241. $this->comment = $comment;
  242. return $this;
  243. }
  244. public function getMemorizing(): ?string
  245. {
  246. return $this->memorizing;
  247. }
  248. public function setMemorizing(?string $memorizing): self
  249. {
  250. $this->memorizing = $memorizing;
  251. return $this;
  252. }
  253. public function getMemorizingLevel(): ?string
  254. {
  255. return $this->memorizingLevel;
  256. }
  257. public function setMemorizingLevel(?string $memorizingLevel): self
  258. {
  259. $this->memorizingLevel = $memorizingLevel;
  260. return $this;
  261. }
  262. public function getCoranRevision(): ?string
  263. {
  264. return $this->coranRevision;
  265. }
  266. public function setCoranRevision(?string $coranRevision): self
  267. {
  268. $this->coranRevision = $coranRevision;
  269. return $this;
  270. }
  271. public function getCoranRevisionLevel(): ?string
  272. {
  273. return $this->coranRevisionLevel;
  274. }
  275. public function setCoranRevisionLevel(?string $coranRevisionLevel): self
  276. {
  277. $this->coranRevisionLevel = $coranRevisionLevel;
  278. return $this;
  279. }
  280. public function getNewSourate(): ?string
  281. {
  282. return $this->newSourate;
  283. }
  284. public function setNewSourate(?string $newSourate): self
  285. {
  286. $this->newSourate = $newSourate;
  287. return $this;
  288. }
  289. /**
  290. * @return Collection|ReportFiles[]
  291. */
  292. public function getReportFiles(): Collection
  293. {
  294. return $this->reportFiles;
  295. }
  296. public function addReportFile(ReportFiles $reportFile): self
  297. {
  298. if (!$this->reportFiles->contains($reportFile)) {
  299. $this->reportFiles[] = $reportFile;
  300. $reportFile->setReport($this);
  301. }
  302. return $this;
  303. }
  304. public function removeReportFile(ReportFiles $reportFile): self
  305. {
  306. if ($this->reportFiles->contains($reportFile)) {
  307. $this->reportFiles->removeElement($reportFile);
  308. // set the owning side to null (unless already changed)
  309. if ($reportFile->getReport() === $this) {
  310. $reportFile->setReport(null);
  311. }
  312. }
  313. return $this;
  314. }
  315. public function getNewRevision(): ?string
  316. {
  317. return $this->newRevision;
  318. }
  319. public function setNewRevision(?string $newRevision): self
  320. {
  321. $this->newRevision = $newRevision;
  322. return $this;
  323. }
  324. public function getSentAt(): ?\DateTimeInterface
  325. {
  326. return $this->sentAt;
  327. }
  328. public function setSentAt(?\DateTimeInterface $sentAt): self
  329. {
  330. $this->sentAt = $sentAt;
  331. return $this;
  332. }
  333. public function getEditAt(): ?\DateTimeInterface
  334. {
  335. return $this->editAt;
  336. }
  337. public function setEditAt(?\DateTimeInterface $editAt): self
  338. {
  339. $this->editAt = $editAt;
  340. return $this;
  341. }
  342. }