src/Entity/Game/Riddle/WordRiddleParticipation.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Game\Riddle;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Game\Riddle\WordRiddle;
  5. use App\Repository\Game\Riddle\WordRiddleParticipationRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use JMS\Serializer\Annotation as Serializer;
  8. /**
  9. * @ORM\Entity(repositoryClass=WordRiddleParticipationRepository::class)
  10. * @Serializer\ExclusionPolicy("ALL")
  11. */
  12. class WordRiddleParticipation extends BaseEntity
  13. {
  14. /**
  15. * @ORM\Id
  16. * @ORM\GeneratedValue
  17. * @ORM\Column(type="integer")
  18. * @Serializer\Expose
  19. */
  20. private $id;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=WordRiddle::class, inversedBy="wordRiddleParticipations")
  23. */
  24. private $wordRiddle;
  25. /**
  26. * @ORM\Column(type="text", nullable=true)
  27. * @Serializer\Expose
  28. */
  29. private $clue;
  30. /**
  31. * @ORM\Column(type="string", length=255, nullable=true)
  32. * @Serializer\Expose
  33. */
  34. private $wordFound;
  35. /**
  36. * @ORM\Column(type="string", length=255, nullable=true)
  37. */
  38. private $word;
  39. /**
  40. * @ORM\Column(type="integer", nullable=true)
  41. */
  42. private $status = 1;
  43. /**
  44. * @ORM\Column(type="integer", nullable=true)
  45. * @Serializer\Expose
  46. */
  47. private $numberOfAttempts = 0;
  48. /**
  49. * @ORM\ManyToOne(targetEntity=WordRiddleLevel::class, inversedBy="participations")
  50. */
  51. private $level;
  52. /**
  53. * @ORM\Column(type="integer")
  54. */
  55. private $score = 0;
  56. public function getId(): ?int
  57. {
  58. return $this->id;
  59. }
  60. public function getWordRiddle(): ?WordRiddle
  61. {
  62. return $this->wordRiddle;
  63. }
  64. public function setWordRiddle(?WordRiddle $wordRiddle): self
  65. {
  66. $this->wordRiddle = $wordRiddle;
  67. return $this;
  68. }
  69. public function getClue(): ?string
  70. {
  71. return $this->clue;
  72. }
  73. public function setClue(?string $clue): self
  74. {
  75. $this->clue = $clue;
  76. return $this;
  77. }
  78. public function getWordFound(): ?string
  79. {
  80. return $this->wordFound;
  81. }
  82. public function setWordFound(?string $wordFound): self
  83. {
  84. $this->wordFound = $wordFound;
  85. return $this;
  86. }
  87. public function getWord(): ?string
  88. {
  89. return $this->word;
  90. }
  91. public function setWord(string $word): self
  92. {
  93. $this->word = $word;
  94. return $this;
  95. }
  96. public function getStatus(): ?int
  97. {
  98. return $this->status;
  99. }
  100. public function setStatus(?int $status): self
  101. {
  102. $this->status = $status;
  103. return $this;
  104. }
  105. public function getNumberOfAttempts(): ?int
  106. {
  107. return $this->numberOfAttempts;
  108. }
  109. public function setNumberOfAttempts(?int $numberOfAttempts): self
  110. {
  111. $this->numberOfAttempts = $numberOfAttempts;
  112. return $this;
  113. }
  114. public function getLevel(): ?WordRiddleLevel
  115. {
  116. return $this->level;
  117. }
  118. public function setLevel(?WordRiddleLevel $level): self
  119. {
  120. $this->level = $level;
  121. return $this;
  122. }
  123. public function getScore(): ?int
  124. {
  125. return $this->score;
  126. }
  127. public function setScore(int $score): self
  128. {
  129. $this->score = $score;
  130. return $this;
  131. }
  132. }