src/CoreBundle/Entity/SharedQuizDeactivatedProblem.php line 15

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\ORM\Mapping\UniqueConstraint;
  5. /**
  6. * @ORM\Table("shared_quiz_deactivated_problem",uniqueConstraints={@UniqueConstraint(name="unique_session_problem", columns={"quiz_session_id", "problem_id"})})
  7. * @ORM\Entity
  8. * @ORM\Entity(repositoryClass="SharedQuizDeactivatedProblemRepository")
  9. */
  10. class SharedQuizDeactivatedProblem
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer")
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private int $id;
  20. /**
  21. * @var QuizSession
  22. *
  23. * @ORM\ManyToOne(targetEntity="CoreBundle\Entity\QuizSession")
  24. * @ORM\JoinColumn(name="quiz_session_id", referencedColumnName="id")
  25. */
  26. private QuizSession $quizSession;
  27. /**
  28. * @var Mathproblem
  29. *
  30. * @ORM\ManyToOne(targetEntity="CoreBundle\Entity\Mathproblem")
  31. * @ORM\JoinColumn(name="problem_id", referencedColumnName="id")
  32. */
  33. private Mathproblem $problem;
  34. /**
  35. * @return int
  36. */
  37. public function getId(): int
  38. {
  39. return $this->id;
  40. }
  41. /**
  42. * @param int $id
  43. * @return void
  44. */
  45. public function setId(int $id): void
  46. {
  47. $this->id = $id;
  48. }
  49. /**
  50. * @return QuizSession
  51. */
  52. public function getQuizSession(): QuizSession
  53. {
  54. return $this->quizSession;
  55. }
  56. /**
  57. * @param QuizSession $quizSession
  58. * @return void
  59. */
  60. public function setQuizSession(QuizSession $quizSession): void
  61. {
  62. $this->quizSession = $quizSession;
  63. }
  64. /**
  65. * @return Mathproblem
  66. */
  67. public function getProblem(): Mathproblem
  68. {
  69. return $this->problem;
  70. }
  71. /**
  72. * @param Mathproblem $problem
  73. * @return void
  74. */
  75. public function setProblem(Mathproblem $problem): void
  76. {
  77. $this->problem = $problem;
  78. }
  79. }