12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- /* For licensing terms, see /license.txt */
- namespace Chamilo\PluginBundle\Entity\WhispeakAuth;
- use Chamilo\CourseBundle\Entity\CQuiz;
- use Chamilo\CourseBundle\Entity\CQuizQuestion;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Class LogEventQuiz.
- *
- * @package Chamilo\PluginBundle\Entity\WhispeakAuth
- *
- * @ORM\Entity()
- */
- class LogEventQuiz extends LogEvent
- {
- /**
- * @var CQuizQuestion
- *
- * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CQuizQuestion")
- * @ORM\JoinColumn(name="question_id", referencedColumnName="iid")
- */
- private $question;
- /**
- * @var CQuiz
- *
- * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CQuiz")
- * @ORM\JoinColumn(name="quiz_id", referencedColumnName="iid")
- */
- private $quiz;
- /**
- * @return CQuizQuestion
- */
- public function getQuestion()
- {
- return $this->question;
- }
- /**
- * @param CQuizQuestion $question
- *
- * @return LogEventQuiz
- */
- public function setQuestion($question)
- {
- $this->question = $question;
- return $this;
- }
- /**
- * @return CQuiz
- */
- public function getQuiz()
- {
- return $this->quiz;
- }
- /**
- * @param CQuiz $quiz
- *
- * @return LogEventQuiz
- */
- public function setQuiz($quiz)
- {
- $this->quiz = $quiz;
- return $this;
- }
- }
|