src/Entity/Game/Riddle/ImageRiddleParticipation.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Game\Riddle;
  3. use App\Entity\BaseEntity;
  4. use App\Repository\Game\Riddle\ImageRiddleParticipationRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=ImageRiddleParticipationRepository::class)
  8. */
  9. class ImageRiddleParticipation extends BaseEntity
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\ManyToOne(targetEntity=ImageRiddle::class, inversedBy="imageRiddleParticipations")
  19. */
  20. private $imageRiddle;
  21. /**
  22. * @ORM\Column(type="string", length=255)
  23. */
  24. private $wordFound;
  25. /**
  26. * @ORM\Column(type="string", length=255)
  27. */
  28. private $word;
  29. /**
  30. * @ORM\Column(type="integer")
  31. */
  32. private $score = 0;
  33. public function getId(): ?int
  34. {
  35. return $this->id;
  36. }
  37. public function getImageRiddle(): ?ImageRiddle
  38. {
  39. return $this->imageRiddle;
  40. }
  41. public function setImageRiddle(?ImageRiddle $imageRiddle): self
  42. {
  43. $this->imageRiddle = $imageRiddle;
  44. return $this;
  45. }
  46. public function getWordFound(): ?string
  47. {
  48. return $this->wordFound;
  49. }
  50. public function setWordFound(string $wordFound): self
  51. {
  52. $this->wordFound = $wordFound;
  53. return $this;
  54. }
  55. public function getWord(): ?string
  56. {
  57. return $this->word;
  58. }
  59. public function setWord(string $word): self
  60. {
  61. $this->word = $word;
  62. return $this;
  63. }
  64. public function getScore(): ?int
  65. {
  66. return $this->score;
  67. }
  68. public function setScore(int $score): self
  69. {
  70. $this->score = $score;
  71. return $this;
  72. }
  73. }