<?php
namespace App\Entity;
use App\Repository\QuestionOptionsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: QuestionOptionsRepository::class)]
class QuestionOptions
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 100000)]
private ?string $label = null;
#[ORM\Column(length: 255)]
private ?string $value = null;
#[ORM\ManyToOne(inversedBy: 'options')]
private ?QuizQuestion $quizQuestion = null;
#[ORM\Column]
private ?bool $isCorrect = null;
public function __construct()
{
}
public function getId(): ?int
{
return $this->id;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getQuizQuestion(): ?QuizQuestion
{
return $this->quizQuestion;
}
public function setQuizQuestion(?QuizQuestion $quizQuestion): self
{
$this->quizQuestion = $quizQuestion;
return $this;
}
public function isIsCorrect(): ?bool
{
return $this->isCorrect;
}
public function setIsCorrect(bool $isCorrect): self
{
$this->isCorrect = $isCorrect;
return $this;
}
}