src/Entity/QuestionOptions.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\QuestionOptionsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassQuestionOptionsRepository::class)]
  8. class QuestionOptions
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length100000)]
  15.     private ?string $label null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $value null;
  18.     #[ORM\ManyToOne(inversedBy'options')]
  19.     private ?QuizQuestion $quizQuestion null;
  20.     #[ORM\Column]
  21.     private ?bool $isCorrect null;
  22.     public function __construct()
  23.     {
  24.     }
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getLabel(): ?string
  30.     {
  31.         return $this->label;
  32.     }
  33.     public function setLabel(string $label): self
  34.     {
  35.         $this->label $label;
  36.         return $this;
  37.     }
  38.     public function getValue(): ?string
  39.     {
  40.         return $this->value;
  41.     }
  42.     public function setValue(string $value): self
  43.     {
  44.         $this->value $value;
  45.         return $this;
  46.     }
  47.     public function getQuizQuestion(): ?QuizQuestion
  48.     {
  49.         return $this->quizQuestion;
  50.     }
  51.     public function setQuizQuestion(?QuizQuestion $quizQuestion): self
  52.     {
  53.         $this->quizQuestion $quizQuestion;
  54.         return $this;
  55.     }
  56.     public function isIsCorrect(): ?bool
  57.     {
  58.         return $this->isCorrect;
  59.     }
  60.     public function setIsCorrect(bool $isCorrect): self
  61.     {
  62.         $this->isCorrect $isCorrect;
  63.         return $this;
  64.     }
  65. }