quiz_answer.class.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. *
  6. * @license see /license.txt
  7. * @author autogenerated
  8. */
  9. class QuizAnswer extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\QuizAnswerRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\QuizAnswerRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\QuizAnswer
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var integer $c_id
  25. */
  26. protected $c_id;
  27. /**
  28. * @var integer $id_auto
  29. */
  30. protected $id_auto;
  31. /**
  32. * @var integer $id
  33. */
  34. protected $id;
  35. /**
  36. * @var integer $question_id
  37. */
  38. protected $question_id;
  39. /**
  40. * @var text $answer
  41. */
  42. protected $answer;
  43. /**
  44. * @var integer $correct
  45. */
  46. protected $correct;
  47. /**
  48. * @var text $comment
  49. */
  50. protected $comment;
  51. /**
  52. * @var float $ponderation
  53. */
  54. protected $ponderation;
  55. /**
  56. * @var integer $position
  57. */
  58. protected $position;
  59. /**
  60. * @var text $hotspot_coordinates
  61. */
  62. protected $hotspot_coordinates;
  63. /**
  64. * @var string $hotspot_type
  65. */
  66. protected $hotspot_type;
  67. /**
  68. * @var text $destination
  69. */
  70. protected $destination;
  71. /**
  72. * @var string $answer_code
  73. */
  74. protected $answer_code;
  75. /**
  76. * Set c_id
  77. *
  78. * @param integer $value
  79. * @return QuizAnswer
  80. */
  81. public function set_c_id($value)
  82. {
  83. $this->c_id = $value;
  84. return $this;
  85. }
  86. /**
  87. * Get c_id
  88. *
  89. * @return integer
  90. */
  91. public function get_c_id()
  92. {
  93. return $this->c_id;
  94. }
  95. /**
  96. * Set id_auto
  97. *
  98. * @param integer $value
  99. * @return QuizAnswer
  100. */
  101. public function set_id_auto($value)
  102. {
  103. $this->id_auto = $value;
  104. return $this;
  105. }
  106. /**
  107. * Get id_auto
  108. *
  109. * @return integer
  110. */
  111. public function get_id_auto()
  112. {
  113. return $this->id_auto;
  114. }
  115. /**
  116. * Set id
  117. *
  118. * @param integer $value
  119. * @return QuizAnswer
  120. */
  121. public function set_id($value)
  122. {
  123. $this->id = $value;
  124. return $this;
  125. }
  126. /**
  127. * Get id
  128. *
  129. * @return integer
  130. */
  131. public function get_id()
  132. {
  133. return $this->id;
  134. }
  135. /**
  136. * Set question_id
  137. *
  138. * @param integer $value
  139. * @return QuizAnswer
  140. */
  141. public function set_question_id($value)
  142. {
  143. $this->question_id = $value;
  144. return $this;
  145. }
  146. /**
  147. * Get question_id
  148. *
  149. * @return integer
  150. */
  151. public function get_question_id()
  152. {
  153. return $this->question_id;
  154. }
  155. /**
  156. * Set answer
  157. *
  158. * @param text $value
  159. * @return QuizAnswer
  160. */
  161. public function set_answer($value)
  162. {
  163. $this->answer = $value;
  164. return $this;
  165. }
  166. /**
  167. * Get answer
  168. *
  169. * @return text
  170. */
  171. public function get_answer()
  172. {
  173. return $this->answer;
  174. }
  175. /**
  176. * Set correct
  177. *
  178. * @param integer $value
  179. * @return QuizAnswer
  180. */
  181. public function set_correct($value)
  182. {
  183. $this->correct = $value;
  184. return $this;
  185. }
  186. /**
  187. * Get correct
  188. *
  189. * @return integer
  190. */
  191. public function get_correct()
  192. {
  193. return $this->correct;
  194. }
  195. /**
  196. * Set comment
  197. *
  198. * @param text $value
  199. * @return QuizAnswer
  200. */
  201. public function set_comment($value)
  202. {
  203. $this->comment = $value;
  204. return $this;
  205. }
  206. /**
  207. * Get comment
  208. *
  209. * @return text
  210. */
  211. public function get_comment()
  212. {
  213. return $this->comment;
  214. }
  215. /**
  216. * Set ponderation
  217. *
  218. * @param float $value
  219. * @return QuizAnswer
  220. */
  221. public function set_ponderation($value)
  222. {
  223. $this->ponderation = $value;
  224. return $this;
  225. }
  226. /**
  227. * Get ponderation
  228. *
  229. * @return float
  230. */
  231. public function get_ponderation()
  232. {
  233. return $this->ponderation;
  234. }
  235. /**
  236. * Set position
  237. *
  238. * @param integer $value
  239. * @return QuizAnswer
  240. */
  241. public function set_position($value)
  242. {
  243. $this->position = $value;
  244. return $this;
  245. }
  246. /**
  247. * Get position
  248. *
  249. * @return integer
  250. */
  251. public function get_position()
  252. {
  253. return $this->position;
  254. }
  255. /**
  256. * Set hotspot_coordinates
  257. *
  258. * @param text $value
  259. * @return QuizAnswer
  260. */
  261. public function set_hotspot_coordinates($value)
  262. {
  263. $this->hotspot_coordinates = $value;
  264. return $this;
  265. }
  266. /**
  267. * Get hotspot_coordinates
  268. *
  269. * @return text
  270. */
  271. public function get_hotspot_coordinates()
  272. {
  273. return $this->hotspot_coordinates;
  274. }
  275. /**
  276. * Set hotspot_type
  277. *
  278. * @param string $value
  279. * @return QuizAnswer
  280. */
  281. public function set_hotspot_type($value)
  282. {
  283. $this->hotspot_type = $value;
  284. return $this;
  285. }
  286. /**
  287. * Get hotspot_type
  288. *
  289. * @return string
  290. */
  291. public function get_hotspot_type()
  292. {
  293. return $this->hotspot_type;
  294. }
  295. /**
  296. * Set destination
  297. *
  298. * @param text $value
  299. * @return QuizAnswer
  300. */
  301. public function set_destination($value)
  302. {
  303. $this->destination = $value;
  304. return $this;
  305. }
  306. /**
  307. * Get destination
  308. *
  309. * @return text
  310. */
  311. public function get_destination()
  312. {
  313. return $this->destination;
  314. }
  315. /**
  316. * Set answer_code
  317. *
  318. * @param string $value
  319. * @return QuizAnswer
  320. */
  321. public function set_answer_code($value)
  322. {
  323. $this->answer_code = $value;
  324. return $this;
  325. }
  326. /**
  327. * Get answer_code
  328. *
  329. * @return string
  330. */
  331. public function get_answer_code()
  332. {
  333. return $this->answer_code;
  334. }
  335. }