TrackAttempt.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * TrackEAttempt
  6. *
  7. * @ORM\Table(name="track_e_attempt")
  8. * @ORM\Entity(repositoryClass="Entity\Repository\TrackAttemptRepository")
  9. */
  10. class TrackAttempt
  11. {
  12. /**
  13. * @var integer
  14. *
  15. * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var integer
  22. *
  23. * @ORM\Column(name="exe_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  24. */
  25. private $exeId;
  26. /**
  27. * @var integer
  28. *
  29. * @ORM\Column(name="user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  30. */
  31. private $userId;
  32. /**
  33. * @var integer
  34. *
  35. * @ORM\Column(name="question_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  36. */
  37. private $questionId;
  38. /**
  39. * @var string
  40. *
  41. * @ORM\Column(name="answer", type="text", precision=0, scale=0, nullable=false, unique=false)
  42. */
  43. private $answer;
  44. /**
  45. * @var string
  46. *
  47. * @ORM\Column(name="teacher_comment", type="text", precision=0, scale=0, nullable=false, unique=false)
  48. */
  49. private $teacherComment;
  50. /**
  51. * @var float
  52. *
  53. * @ORM\Column(name="marks", type="float", precision=0, scale=0, nullable=false, unique=false)
  54. */
  55. private $marks;
  56. /**
  57. * @var integer
  58. *
  59. * @ORM\Column(name="position", type="integer", precision=0, scale=0, nullable=true, unique=false)
  60. */
  61. private $position;
  62. /**
  63. * @var \DateTime
  64. *
  65. * @ORM\Column(name="tms", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  66. */
  67. private $tms;
  68. /**
  69. * @var integer
  70. *
  71. * @ORM\Column(name="session_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  72. */
  73. private $sessionId;
  74. /**
  75. * @var integer
  76. *
  77. * @ORM\Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  78. */
  79. private $cId;
  80. /**
  81. * @var string
  82. *
  83. * @ORM\Column(name="filename", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  84. */
  85. private $filename;
  86. /**
  87. * @ORM\ManyToOne(targetEntity="TrackExercise")
  88. * @ORM\JoinColumn(name="exe_id", referencedColumnName="exe_id")
  89. */
  90. private $attempt;
  91. /**
  92. * @ORM\ManyToOne(targetEntity="CQuizQuestion")
  93. * @ORM\JoinColumn(name="question_id", referencedColumnName="iid")
  94. */
  95. private $question;
  96. /**
  97. * @return \Entity\CquizQuestion
  98. */
  99. public function getQuestion()
  100. {
  101. return $this->question;
  102. }
  103. /**
  104. * Get id
  105. *
  106. * @return integer
  107. */
  108. public function getId()
  109. {
  110. return $this->id;
  111. }
  112. /**
  113. * Set exeId
  114. *
  115. * @param integer $exeId
  116. * @return TrackEAttempt
  117. */
  118. public function setExeId($exeId)
  119. {
  120. $this->exeId = $exeId;
  121. return $this;
  122. }
  123. /**
  124. * Get exeId
  125. *
  126. * @return integer
  127. */
  128. public function getExeId()
  129. {
  130. return $this->exeId;
  131. }
  132. /**
  133. * Set userId
  134. *
  135. * @param integer $userId
  136. * @return TrackEAttempt
  137. */
  138. public function setUserId($userId)
  139. {
  140. $this->userId = $userId;
  141. return $this;
  142. }
  143. /**
  144. * Get userId
  145. *
  146. * @return integer
  147. */
  148. public function getUserId()
  149. {
  150. return $this->userId;
  151. }
  152. /**
  153. * Set questionId
  154. *
  155. * @param integer $questionId
  156. * @return TrackEAttempt
  157. */
  158. public function setQuestionId($questionId)
  159. {
  160. $this->questionId = $questionId;
  161. return $this;
  162. }
  163. /**
  164. * Get questionId
  165. *
  166. * @return integer
  167. */
  168. public function getQuestionId()
  169. {
  170. return $this->questionId;
  171. }
  172. /**
  173. * Set answer
  174. *
  175. * @param string $answer
  176. * @return TrackEAttempt
  177. */
  178. public function setAnswer($answer)
  179. {
  180. $this->answer = $answer;
  181. return $this;
  182. }
  183. /**
  184. * Get answer
  185. *
  186. * @return string
  187. */
  188. public function getAnswer()
  189. {
  190. return $this->answer;
  191. }
  192. /**
  193. * Set teacherComment
  194. *
  195. * @param string $teacherComment
  196. * @return TrackEAttempt
  197. */
  198. public function setTeacherComment($teacherComment)
  199. {
  200. $this->teacherComment = $teacherComment;
  201. return $this;
  202. }
  203. /**
  204. * Get teacherComment
  205. *
  206. * @return string
  207. */
  208. public function getTeacherComment()
  209. {
  210. return $this->teacherComment;
  211. }
  212. /**
  213. * Set marks
  214. *
  215. * @param float $marks
  216. * @return TrackEAttempt
  217. */
  218. public function setMarks($marks)
  219. {
  220. $this->marks = $marks;
  221. return $this;
  222. }
  223. /**
  224. * Get marks
  225. *
  226. * @return float
  227. */
  228. public function getMarks()
  229. {
  230. return $this->marks;
  231. }
  232. /**
  233. * Set position
  234. *
  235. * @param integer $position
  236. * @return TrackEAttempt
  237. */
  238. public function setPosition($position)
  239. {
  240. $this->position = $position;
  241. return $this;
  242. }
  243. /**
  244. * Get position
  245. *
  246. * @return integer
  247. */
  248. public function getPosition()
  249. {
  250. return $this->position;
  251. }
  252. /**
  253. * Set tms
  254. *
  255. * @param \DateTime $tms
  256. * @return TrackEAttempt
  257. */
  258. public function setTms($tms)
  259. {
  260. $this->tms = $tms;
  261. return $this;
  262. }
  263. /**
  264. * Get tms
  265. *
  266. * @return \DateTime
  267. */
  268. public function getTms()
  269. {
  270. return $this->tms;
  271. }
  272. /**
  273. * Set sessionId
  274. *
  275. * @param integer $sessionId
  276. * @return TrackEAttempt
  277. */
  278. public function setSessionId($sessionId)
  279. {
  280. $this->sessionId = $sessionId;
  281. return $this;
  282. }
  283. /**
  284. * Get sessionId
  285. *
  286. * @return integer
  287. */
  288. public function getSessionId()
  289. {
  290. return $this->sessionId;
  291. }
  292. /**
  293. * Set cId
  294. *
  295. * @param integer $cId
  296. * @return TrackEAttempt
  297. */
  298. public function setCId($cId)
  299. {
  300. $this->cId = $cId;
  301. return $this;
  302. }
  303. /**
  304. * Get cId
  305. *
  306. * @return integer
  307. */
  308. public function getCId()
  309. {
  310. return $this->cId;
  311. }
  312. /**
  313. * Set filename
  314. *
  315. * @param string $filename
  316. * @return TrackEAttempt
  317. */
  318. public function setFilename($filename)
  319. {
  320. $this->filename = $filename;
  321. return $this;
  322. }
  323. /**
  324. * Get filename
  325. *
  326. * @return string
  327. */
  328. public function getFilename()
  329. {
  330. return $this->filename;
  331. }
  332. }