quiz_question.class.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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 QuizQuestion extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\QuizQuestionRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\QuizQuestionRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\QuizQuestion
  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
  29. */
  30. protected $id;
  31. /**
  32. * @var text $question
  33. */
  34. protected $question;
  35. /**
  36. * @var text $description
  37. */
  38. protected $description;
  39. /**
  40. * @var float $ponderation
  41. */
  42. protected $ponderation;
  43. /**
  44. * @var integer $position
  45. */
  46. protected $position;
  47. /**
  48. * @var boolean $type
  49. */
  50. protected $type;
  51. /**
  52. * @var string $picture
  53. */
  54. protected $picture;
  55. /**
  56. * @var integer $level
  57. */
  58. protected $level;
  59. /**
  60. * @var string $extra
  61. */
  62. protected $extra;
  63. /**
  64. * @var string $question_code
  65. */
  66. protected $question_code;
  67. /**
  68. * Set c_id
  69. *
  70. * @param integer $value
  71. * @return QuizQuestion
  72. */
  73. public function set_c_id($value)
  74. {
  75. $this->c_id = $value;
  76. return $this;
  77. }
  78. /**
  79. * Get c_id
  80. *
  81. * @return integer
  82. */
  83. public function get_c_id()
  84. {
  85. return $this->c_id;
  86. }
  87. /**
  88. * Set id
  89. *
  90. * @param integer $value
  91. * @return QuizQuestion
  92. */
  93. public function set_id($value)
  94. {
  95. $this->id = $value;
  96. return $this;
  97. }
  98. /**
  99. * Get id
  100. *
  101. * @return integer
  102. */
  103. public function get_id()
  104. {
  105. return $this->id;
  106. }
  107. /**
  108. * Set question
  109. *
  110. * @param text $value
  111. * @return QuizQuestion
  112. */
  113. public function set_question($value)
  114. {
  115. $this->question = $value;
  116. return $this;
  117. }
  118. /**
  119. * Get question
  120. *
  121. * @return text
  122. */
  123. public function get_question()
  124. {
  125. return $this->question;
  126. }
  127. /**
  128. * Set description
  129. *
  130. * @param text $value
  131. * @return QuizQuestion
  132. */
  133. public function set_description($value)
  134. {
  135. $this->description = $value;
  136. return $this;
  137. }
  138. /**
  139. * Get description
  140. *
  141. * @return text
  142. */
  143. public function get_description()
  144. {
  145. return $this->description;
  146. }
  147. /**
  148. * Set ponderation
  149. *
  150. * @param float $value
  151. * @return QuizQuestion
  152. */
  153. public function set_ponderation($value)
  154. {
  155. $this->ponderation = $value;
  156. return $this;
  157. }
  158. /**
  159. * Get ponderation
  160. *
  161. * @return float
  162. */
  163. public function get_ponderation()
  164. {
  165. return $this->ponderation;
  166. }
  167. /**
  168. * Set position
  169. *
  170. * @param integer $value
  171. * @return QuizQuestion
  172. */
  173. public function set_position($value)
  174. {
  175. $this->position = $value;
  176. return $this;
  177. }
  178. /**
  179. * Get position
  180. *
  181. * @return integer
  182. */
  183. public function get_position()
  184. {
  185. return $this->position;
  186. }
  187. /**
  188. * Set type
  189. *
  190. * @param boolean $value
  191. * @return QuizQuestion
  192. */
  193. public function set_type($value)
  194. {
  195. $this->type = $value;
  196. return $this;
  197. }
  198. /**
  199. * Get type
  200. *
  201. * @return boolean
  202. */
  203. public function get_type()
  204. {
  205. return $this->type;
  206. }
  207. /**
  208. * Set picture
  209. *
  210. * @param string $value
  211. * @return QuizQuestion
  212. */
  213. public function set_picture($value)
  214. {
  215. $this->picture = $value;
  216. return $this;
  217. }
  218. /**
  219. * Get picture
  220. *
  221. * @return string
  222. */
  223. public function get_picture()
  224. {
  225. return $this->picture;
  226. }
  227. /**
  228. * Set level
  229. *
  230. * @param integer $value
  231. * @return QuizQuestion
  232. */
  233. public function set_level($value)
  234. {
  235. $this->level = $value;
  236. return $this;
  237. }
  238. /**
  239. * Get level
  240. *
  241. * @return integer
  242. */
  243. public function get_level()
  244. {
  245. return $this->level;
  246. }
  247. /**
  248. * Set extra
  249. *
  250. * @param string $value
  251. * @return QuizQuestion
  252. */
  253. public function set_extra($value)
  254. {
  255. $this->extra = $value;
  256. return $this;
  257. }
  258. /**
  259. * Get extra
  260. *
  261. * @return string
  262. */
  263. public function get_extra()
  264. {
  265. return $this->extra;
  266. }
  267. /**
  268. * Set question_code
  269. *
  270. * @param string $value
  271. * @return QuizQuestion
  272. */
  273. public function set_question_code($value)
  274. {
  275. $this->question_code = $value;
  276. return $this;
  277. }
  278. /**
  279. * Get question_code
  280. *
  281. * @return string
  282. */
  283. public function get_question_code()
  284. {
  285. return $this->question_code;
  286. }
  287. }