<?php
namespace App\Entity\Game\Riddle;
use App\Entity\BaseEntity;
use App\Repository\Game\Riddle\ImageRiddleParticipationRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ImageRiddleParticipationRepository::class)
*/
class ImageRiddleParticipation extends BaseEntity
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=ImageRiddle::class, inversedBy="imageRiddleParticipations")
*/
private $imageRiddle;
/**
* @ORM\Column(type="string", length=255)
*/
private $wordFound;
/**
* @ORM\Column(type="string", length=255)
*/
private $word;
/**
* @ORM\Column(type="integer")
*/
private $score = 0;
public function getId(): ?int
{
return $this->id;
}
public function getImageRiddle(): ?ImageRiddle
{
return $this->imageRiddle;
}
public function setImageRiddle(?ImageRiddle $imageRiddle): self
{
$this->imageRiddle = $imageRiddle;
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 getScore(): ?int
{
return $this->score;
}
public function setScore(int $score): self
{
$this->score = $score;
return $this;
}
}