<?php
namespace App\Entity;
use App\Repository\QuizReponseRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: QuizReponseRepository::class)]
class QuizReponse
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $value = null;
#[ORM\ManyToOne(inversedBy: 'quizReponses')]
private ?QuizQuestion $question = null;
#[ORM\ManyToOne(inversedBy: 'quizReponses')]
private ?User $user = null;
public function getId(): ?int
{
return $this->id;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getQuestion(): ?QuizQuestion
{
return $this->question;
}
public function setQuestion(?QuizQuestion $question): self
{
$this->question = $question;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}