LogEventQuiz.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Chamilo\PluginBundle\Entity\WhispeakAuth;
  4. use Chamilo\CourseBundle\Entity\CQuiz;
  5. use Chamilo\CourseBundle\Entity\CQuizQuestion;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * Class LogEventQuiz.
  9. *
  10. * @package Chamilo\PluginBundle\Entity\WhispeakAuth
  11. *
  12. * @ORM\Entity()
  13. */
  14. class LogEventQuiz extends LogEvent
  15. {
  16. /**
  17. * @var CQuizQuestion
  18. *
  19. * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CQuizQuestion")
  20. * @ORM\JoinColumn(name="question_id", referencedColumnName="iid")
  21. */
  22. private $question;
  23. /**
  24. * @var CQuiz
  25. *
  26. * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CQuiz")
  27. * @ORM\JoinColumn(name="quiz_id", referencedColumnName="iid")
  28. */
  29. private $quiz;
  30. /**
  31. * @return CQuizQuestion
  32. */
  33. public function getQuestion()
  34. {
  35. return $this->question;
  36. }
  37. /**
  38. * @param CQuizQuestion $question
  39. *
  40. * @return LogEventQuiz
  41. */
  42. public function setQuestion($question)
  43. {
  44. $this->question = $question;
  45. return $this;
  46. }
  47. /**
  48. * @return CQuiz
  49. */
  50. public function getQuiz()
  51. {
  52. return $this->quiz;
  53. }
  54. /**
  55. * @param CQuiz $quiz
  56. *
  57. * @return LogEventQuiz
  58. */
  59. public function setQuiz($quiz)
  60. {
  61. $this->quiz = $quiz;
  62. return $this;
  63. }
  64. }