src/CoreBundle/Entity/Pretest.php line 12

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