CQuizDistributionQuestions.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. /**
  7. * CQuizDistributionQuestions
  8. *
  9. * @ORM\Table(name="c_quiz_distribution_questions")
  10. * @ORM\Entity
  11. */
  12. class CQuizDistributionQuestions
  13. {
  14. /**
  15. * @var integer
  16. *
  17. * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  18. * @ORM\Id
  19. * @ORM\GeneratedValue(strategy="IDENTITY")
  20. */
  21. private $id;
  22. /**
  23. * @var integer
  24. *
  25. * @ORM\Column(name="quiz_distribution_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  26. */
  27. private $quizDistributionId;
  28. /**
  29. * @var integer
  30. *
  31. * @ORM\Column(name="category_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  32. */
  33. private $categoryId;
  34. /**
  35. * @var integer
  36. *
  37. * @ORM\Column(name="question_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  38. */
  39. private $questionId;
  40. /**
  41. * @ORM\ManyToOne(targetEntity="CQuizDistribution")
  42. * @ORM\JoinColumn(name="quiz_distribution_id", referencedColumnName="id", nullable=true)
  43. */
  44. private $distribution;
  45. public function setDistribution($distribution)
  46. {
  47. $this->distribution = $distribution;
  48. }
  49. /**
  50. * Get id
  51. *
  52. * @return integer
  53. */
  54. public function getId()
  55. {
  56. return $this->id;
  57. }
  58. /**
  59. * Set quizDistributionId
  60. *
  61. * @param integer $quizDistributionId
  62. * @return CQuizDistributionQuestions
  63. */
  64. public function setQuizDistributionId($quizDistributionId)
  65. {
  66. $this->quizDistributionId = $quizDistributionId;
  67. return $this;
  68. }
  69. /**
  70. * Get quizDistributionId
  71. *
  72. * @return integer
  73. */
  74. public function getQuizDistributionId()
  75. {
  76. return $this->quizDistributionId;
  77. }
  78. /**
  79. * Set categoryId
  80. *
  81. * @param integer $categoryId
  82. * @return CQuizDistributionQuestions
  83. */
  84. public function setCategoryId($categoryId)
  85. {
  86. $this->categoryId = $categoryId;
  87. return $this;
  88. }
  89. /**
  90. * Get categoryId
  91. *
  92. * @return integer
  93. */
  94. public function getCategoryId()
  95. {
  96. return $this->categoryId;
  97. }
  98. /**
  99. * Set questionId
  100. *
  101. * @param integer $questionId
  102. * @return CQuizDistributionQuestions
  103. */
  104. public function setQuestionId($questionId)
  105. {
  106. $this->questionId = $questionId;
  107. return $this;
  108. }
  109. /**
  110. * Get questionId
  111. *
  112. * @return integer
  113. */
  114. public function getQuestionId()
  115. {
  116. return $this->questionId;
  117. }
  118. }