src/Entity/MemoryGame.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MemoryGameRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=MemoryGameRepository::class)
  7. */
  8. class MemoryGame
  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="memorygames")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $user;
  21. /**
  22. * @ORM\Column(type="float", nullable=true)
  23. */
  24. private $start;
  25. /**
  26. * @ORM\Column(type="float", nullable=true)
  27. */
  28. private $end;
  29. /**
  30. * @ORM\Column(type="integer", nullable=true)
  31. */
  32. private $points;
  33. /**
  34. * @ORM\Column(type="text", nullable=true)
  35. */
  36. private $itemsStart;
  37. /**
  38. * @ORM\Column(type="integer", nullable=true)
  39. */
  40. private $moveCount;
  41. /**
  42. * @ORM\Column(type="text", nullable=true)
  43. */
  44. private $itemsChecked;
  45. /**
  46. * @ORM\Column(type="text", nullable=true)
  47. */
  48. private $itemsLeft;
  49. /**
  50. * @ORM\Column(type="integer", nullable=false)
  51. */
  52. private $quiz;
  53. public function getId(): ?int
  54. {
  55. return $this->id;
  56. }
  57. public function getUser(): ?User
  58. {
  59. return $this->user;
  60. }
  61. public function setUser(?User $user): self
  62. {
  63. $this->user = $user;
  64. return $this;
  65. }
  66. public function getStart(): ?float
  67. {
  68. return $this->start;
  69. }
  70. public function setStart(?float $start): self
  71. {
  72. $this->start = $start;
  73. return $this;
  74. }
  75. public function getEnd(): ?float
  76. {
  77. return $this->end;
  78. }
  79. public function setEnd(?float $end): self
  80. {
  81. $this->end = $end;
  82. return $this;
  83. }
  84. public function getPoints(): ?int
  85. {
  86. return $this->points;
  87. }
  88. public function setPoints(?int $points): self
  89. {
  90. $this->points = $points;
  91. return $this;
  92. }
  93. public function getItemsStart(): ?string
  94. {
  95. return $this->itemsStart;
  96. }
  97. public function setItemsStart(string $start): self
  98. {
  99. $this->itemsStart = $start;
  100. return $this;
  101. }
  102. /**
  103. * @return mixed
  104. */
  105. public function getMoveCount()
  106. {
  107. return $this->moveCount;
  108. }
  109. /**
  110. * @param mixed $moveCount
  111. * @return MemoryGame
  112. */
  113. public function setMoveCount($moveCount)
  114. {
  115. $this->moveCount = $moveCount;
  116. return $this;
  117. }
  118. /**
  119. * @return mixed
  120. */
  121. public function getItemsChecked()
  122. {
  123. return $this->itemsChecked;
  124. }
  125. /**
  126. * @param mixed $itemsChecked
  127. * @return MemoryGame
  128. */
  129. public function setItemsChecked($itemsChecked)
  130. {
  131. $this->itemsChecked = $itemsChecked;
  132. return $this;
  133. }
  134. /**
  135. * @return mixed
  136. */
  137. public function getItemsLeft()
  138. {
  139. return $this->itemsLeft;
  140. }
  141. /**
  142. * @param mixed $itemsLeft
  143. * @return MemoryGame
  144. */
  145. public function setItemsLeft($itemsLeft)
  146. {
  147. $this->itemsLeft = $itemsLeft;
  148. return $this;
  149. }
  150. /**
  151. * @return mixed
  152. */
  153. public function getQuiz()
  154. {
  155. return $this->quiz;
  156. }
  157. /**
  158. * @param mixed $quiz
  159. * @return Answear
  160. */
  161. public function setQuiz($quiz)
  162. {
  163. $this->quiz = $quiz;
  164. return $this;
  165. }
  166. }