src/Entity/Core/Pretest.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Core;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Table('pretest')]
  5. #[ORM\Entity]
  6. class Pretest
  7. {
  8. /**
  9. * @var int
  10. */
  11. #[ORM\Column(name: 'id', type: 'integer')]
  12. #[ORM\Id]
  13. #[ORM\GeneratedValue(strategy: 'AUTO')]
  14. private $id;
  15. /**
  16. * @var int
  17. */
  18. #[ORM\Column(name: 'time_limit', type: 'integer')]
  19. private $timeLimit;
  20. public function __construct()
  21. {
  22. // $this->mathproblems = new ArrayCollection();
  23. }
  24. /**
  25. * Get id.
  26. *
  27. * @return int
  28. */
  29. public function getId()
  30. {
  31. return $this->id;
  32. }
  33. //
  34. // /**
  35. // * Set topic.
  36. // *
  37. // * @param int $topic
  38. // *
  39. // * @return Pretest
  40. // */
  41. // public function setTopic($topic)
  42. // {
  43. // $this->topic = $topic;
  44. //
  45. // return $this;
  46. // }
  47. //
  48. // /**
  49. // * Get topic.
  50. // *
  51. // * @return int
  52. // */
  53. // public function getTopic()
  54. // {
  55. // return $this->topic;
  56. // }
  57. /**
  58. * Set timeLimit.
  59. *
  60. * @param int $timeLimit
  61. *
  62. * @return Pretest
  63. */
  64. public function setTimeLimit($timeLimit)
  65. {
  66. $this->timeLimit = $timeLimit;
  67. return $this;
  68. }
  69. /**
  70. * Get timeLimit.
  71. *
  72. * @return int
  73. */
  74. public function getTimeLimit()
  75. {
  76. return $this->timeLimit;
  77. }
  78. //
  79. // /**
  80. // * Set online.
  81. // *
  82. // * @param bool $online
  83. // *
  84. // * @return Pretest
  85. // */
  86. // public function setOnline($online)
  87. // {
  88. // $this->online = $online;
  89. //
  90. // return $this;
  91. // }
  92. //
  93. // /**
  94. // * Get online.
  95. // *
  96. // * @return bool
  97. // */
  98. // public function getOnline()
  99. // {
  100. // return $this->online;
  101. // }
  102. //
  103. // /**
  104. // * @return PretestMathproblem[]
  105. // */
  106. // public function getMathproblems()
  107. // {
  108. // return $this->mathproblems;
  109. // }
  110. //
  111. // /**
  112. // * @param PretestMathproblem $pretestMathproblem
  113. // *
  114. // * @return Pretest
  115. // */
  116. // public function addAnswer(PretestMathproblem $pretestMathproblem)
  117. // {
  118. // $pretestMathproblem->setPretest($this);
  119. // $this->mathproblems->add($pretestMathproblem);
  120. //
  121. // return $this;
  122. // }
  123. //
  124. // /**
  125. // * @param PretestMathproblem $pretestMathproblem
  126. // *
  127. // * @return bool
  128. // */
  129. // public function removeAnswer(PretestMathproblem $pretestMathproblem)
  130. // {
  131. // $pretestMathproblem->setPretest(null);
  132. //
  133. // return $this->mathproblems->removeElement($pretestMathproblem);
  134. // }
  135. }