src/Entity/Core/RelationQuizMathproblem.php line 13

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