EntityCQuizQuestion.php 6.4 KB

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