<?phpnamespace App\Entity\Game\WordSearch;use App\Entity\BaseEntity;use App\Repository\Game\WordSearch\WordSearchParticipationRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use JMS\Serializer\Annotation as Serializer;/** * @ORM\Entity(repositoryClass=WordSearchParticipationRepository::class) * @Serializer\ExclusionPolicy("ALL") */class WordSearchParticipation extends BaseEntity{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Serializer\Expose */ private $id; /** * @ORM\ManyToOne(targetEntity=Grid::class, inversedBy="wordSearchParticipations") */ private $grid; /** * @ORM\Column(type="json", nullable=true) * @Serializer\Expose */ private $wordList = []; /** * @ORM\Column(type="json", nullable=true) * @Serializer\Expose */ private $wordFound = []; /** * @ORM\ManyToOne(targetEntity=WordSearchLevel::class, inversedBy="participations") */ private $level; /** * @ORM\Column(type="integer") */ private $score = 0; public function __construct() { } public function getId(): ?int { return $this->id; } public function getGrid(): ?Grid { return $this->grid; } public function setGrid(?Grid $grid): self { $this->grid = $grid; return $this; } public function getWordList(): ?array { return $this->wordList; } public function setWordList(?array $wordList): self { $this->wordList = $wordList; return $this; } public function getWordFound(): ?array { return $this->wordFound; } public function setWordFound(?array $wordFound): self { $this->wordFound = $wordFound; return $this; } public function getLevel(): ?WordSearchLevel { return $this->level; } public function setLevel(?WordSearchLevel $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; }}