<?phpnamespace App\Entity\Game\Riddle;use App\Entity\BaseEntity;use App\Entity\Game\Riddle\WordRiddle;use App\Repository\Game\Riddle\WordRiddleParticipationRepository;use Doctrine\ORM\Mapping as ORM;use JMS\Serializer\Annotation as Serializer;/** * @ORM\Entity(repositoryClass=WordRiddleParticipationRepository::class) * @Serializer\ExclusionPolicy("ALL") */class WordRiddleParticipation extends BaseEntity{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Serializer\Expose */ private $id; /** * @ORM\ManyToOne(targetEntity=WordRiddle::class, inversedBy="wordRiddleParticipations") */ private $wordRiddle; /** * @ORM\Column(type="text", nullable=true) * @Serializer\Expose */ private $clue; /** * @ORM\Column(type="string", length=255, nullable=true) * @Serializer\Expose */ private $wordFound; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $word; /** * @ORM\Column(type="integer", nullable=true) */ private $status = 1; /** * @ORM\Column(type="integer", nullable=true) * @Serializer\Expose */ private $numberOfAttempts = 0; /** * @ORM\ManyToOne(targetEntity=WordRiddleLevel::class, inversedBy="participations") */ private $level; /** * @ORM\Column(type="integer") */ private $score = 0; public function getId(): ?int { return $this->id; } public function getWordRiddle(): ?WordRiddle { return $this->wordRiddle; } public function setWordRiddle(?WordRiddle $wordRiddle): self { $this->wordRiddle = $wordRiddle; return $this; } public function getClue(): ?string { return $this->clue; } public function setClue(?string $clue): self { $this->clue = $clue; return $this; } public function getWordFound(): ?string { return $this->wordFound; } public function setWordFound(?string $wordFound): self { $this->wordFound = $wordFound; return $this; } public function getWord(): ?string { return $this->word; } public function setWord(string $word): self { $this->word = $word; return $this; } public function getStatus(): ?int { return $this->status; } public function setStatus(?int $status): self { $this->status = $status; return $this; } public function getNumberOfAttempts(): ?int { return $this->numberOfAttempts; } public function setNumberOfAttempts(?int $numberOfAttempts): self { $this->numberOfAttempts = $numberOfAttempts; return $this; } public function getLevel(): ?WordRiddleLevel { return $this->level; } public function setLevel(?WordRiddleLevel $level): self { $this->level = $level; return $this; } public function getScore(): ?int { return $this->score; } public function setScore(int $score): self { $this->score = $score; return $this; }}