src/Entity/Answear.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AnswearRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=AnswearRepository::class)
  7. */
  8. class Answear
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=User::class, inversedBy="answears")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $user;
  21. /**
  22. * @ORM\Column(type="integer", nullable=false)
  23. */
  24. private $quiz;
  25. /**
  26. * @ORM\Column(type="float", nullable=true)
  27. */
  28. private $start;
  29. /**
  30. * @ORM\Column(type="float", nullable=true)
  31. */
  32. private $end;
  33. /**
  34. * @ORM\Column(type="integer", nullable=true)
  35. */
  36. private $points;
  37. /**
  38. * @ORM\Column(type="text", nullable=true)
  39. */
  40. private $answear;
  41. /**
  42. * @ORM\Column(type="text", nullable=true)
  43. */
  44. private $questions;
  45. /**
  46. * @ORM\Column(type="text", nullable=true)
  47. */
  48. private $questionsStart;
  49. public function getId(): ?int
  50. {
  51. return $this->id;
  52. }
  53. public function getUser(): ?User
  54. {
  55. return $this->user;
  56. }
  57. public function setUser(?User $user): self
  58. {
  59. $this->user = $user;
  60. return $this;
  61. }
  62. public function getStart(): ?float
  63. {
  64. return $this->start;
  65. }
  66. public function setStart(?float $start): self
  67. {
  68. $this->start = $start;
  69. return $this;
  70. }
  71. public function getEnd(): ?float
  72. {
  73. return $this->end;
  74. }
  75. public function setEnd(?float $end): self
  76. {
  77. $this->end = $end;
  78. return $this;
  79. }
  80. public function getPoints(): ?int
  81. {
  82. return $this->points;
  83. }
  84. public function setPoints(?int $points): self
  85. {
  86. $this->points = $points;
  87. return $this;
  88. }
  89. public function getAnswear(): ?string
  90. {
  91. return $this->answear;
  92. }
  93. public function setAnswear(string $answear): self
  94. {
  95. $this->answear = $answear;
  96. return $this;
  97. }
  98. /**
  99. * @return mixed
  100. */
  101. public function getQuiz()
  102. {
  103. return $this->quiz;
  104. }
  105. /**
  106. * @param mixed $quiz
  107. * @return Answear
  108. */
  109. public function setQuiz($quiz)
  110. {
  111. $this->quiz = $quiz;
  112. return $this;
  113. }
  114. public function getQuestions(): ?string
  115. {
  116. return $this->questions;
  117. }
  118. public function setQuestions(string $questions): self
  119. {
  120. $this->questions = $questions;
  121. return $this;
  122. }
  123. public function getQuestionsStart(): ?string
  124. {
  125. return $this->questionsStart;
  126. }
  127. public function setQuestionsStart(string $questionsStart): self
  128. {
  129. $this->questionsStart = $questionsStart;
  130. return $this;
  131. }
  132. }