src/CoreBundle/Entity/RelationQuizMathproblem.php line 13

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * QuizMathproblem
  6. *
  7. * @ORM\Table(name="quiz_mathproblem")
  8. * @ORM\Entity()
  9. */
  10. class RelationQuizMathproblem
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue(strategy="AUTO")
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity="Quiz")
  20. * @ORM\JoinColumn(nullable=false)
  21. */
  22. private $quiz;
  23. /**
  24. * @ORM\ManyToOne(targetEntity="Mathproblem")
  25. * @ORM\JoinColumn(nullable=false)
  26. */
  27. private $mathproblem;
  28. /**
  29. * @ORM\Column(type="boolean", options={"default": true})
  30. */
  31. private $enabled;
  32. /**
  33. * @return mixed
  34. */
  35. public function getQuiz()
  36. {
  37. return $this->quiz;
  38. }
  39. /**
  40. * @param mixed $quiz
  41. */
  42. public function setQuiz($quiz): void
  43. {
  44. $this->quiz = $quiz;
  45. }
  46. /**
  47. * @return mixed
  48. */
  49. public function getMathproblem()
  50. {
  51. return $this->mathproblem;
  52. }
  53. /**
  54. * @param mixed $mathproblem
  55. */
  56. public function setMathproblem($mathproblem): void
  57. {
  58. $this->mathproblem = $mathproblem;
  59. }
  60. /**
  61. * @return mixed
  62. */
  63. public function getEnabled()
  64. {
  65. return $this->enabled;
  66. }
  67. /**
  68. * @param mixed $enabled
  69. */
  70. public function setEnabled($enabled): void
  71. {
  72. $this->enabled = $enabled;
  73. }
  74. public function __toString()
  75. {
  76. return 'RelationQuizMathproblem';
  77. }
  78. }