CQuizDistributionRelSession.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6. * CQuizDistributionRelSession
  7. *
  8. * @ORM\Table(name="c_quiz_distribution_rel_session")
  9. * @ORM\Entity
  10. */
  11. class CQuizDistributionRelSession
  12. {
  13. /**
  14. * @var integer
  15. *
  16. * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $id;
  21. /**
  22. * @var integer
  23. *
  24. * @ORM\Column(name="session_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  25. */
  26. private $sessionId;
  27. /**
  28. * @var integer
  29. *
  30. * @ORM\Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $cId;
  33. /**
  34. * @var integer
  35. *
  36. * @ORM\Column(name="exercise_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  37. */
  38. private $exerciseId;
  39. /**
  40. * @var integer
  41. *
  42. * @ORM\Column(name="quiz_distribution_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  43. */
  44. private $quizDistributionId;
  45. /**
  46. * @ORM\ManyToOne(targetEntity="CQuizDistribution")
  47. * @ORM\JoinColumn(name="quiz_distribution_id", referencedColumnName="id")
  48. */
  49. private $distribution;
  50. /**
  51. * @return \Entity\CQuizDistribution
  52. */
  53. public function getDistribution()
  54. {
  55. return $this->distribution;
  56. }
  57. /**
  58. * @param CQuizDistribution $distribution
  59. */
  60. public function setDistribution(\Entity\CQuizDistribution $distribution)
  61. {
  62. $this->distribution = $distribution;
  63. }
  64. /**
  65. * Get id
  66. *
  67. * @return integer
  68. */
  69. public function getId()
  70. {
  71. return $this->id;
  72. }
  73. /**
  74. * Set sessionId
  75. *
  76. * @param integer $sessionId
  77. * @return CQuizDistributionRelSession
  78. */
  79. public function setSessionId($sessionId)
  80. {
  81. $this->sessionId = $sessionId;
  82. return $this;
  83. }
  84. /**
  85. * Get sessionId
  86. *
  87. * @return integer
  88. */
  89. public function getSessionId()
  90. {
  91. return $this->sessionId;
  92. }
  93. /**
  94. * Set cId
  95. *
  96. * @param integer $cId
  97. * @return CQuizDistributionRelSession
  98. */
  99. public function setCId($cId)
  100. {
  101. $this->cId = $cId;
  102. return $this;
  103. }
  104. /**
  105. * Get cId
  106. *
  107. * @return integer
  108. */
  109. public function getCId()
  110. {
  111. return $this->cId;
  112. }
  113. /**
  114. * Set exerciseId
  115. *
  116. * @param integer $exerciseId
  117. * @return CQuizDistributionRelSession
  118. */
  119. public function setExerciseId($exerciseId)
  120. {
  121. $this->exerciseId = $exerciseId;
  122. return $this;
  123. }
  124. /**
  125. * Get exerciseId
  126. *
  127. * @return integer
  128. */
  129. public function getExerciseId()
  130. {
  131. return $this->exerciseId;
  132. }
  133. /**
  134. * Set quizDistributionId
  135. *
  136. * @param integer $quizDistributionId
  137. * @return CQuizDistributionRelSession
  138. */
  139. public function setQuizDistributionId($quizDistributionId)
  140. {
  141. $this->quizDistributionId = $quizDistributionId;
  142. return $this;
  143. }
  144. /**
  145. * Get quizDistributionId
  146. *
  147. * @return integer
  148. */
  149. public function getQuizDistributionId()
  150. {
  151. return $this->quizDistributionId;
  152. }
  153. }