src/Entity/Actuv2QuizAnswer.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Actuv2Quiz;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\Actuv2QuizAnswerRepository;
  6. /**
  7.  * Actuv2QuizAnswer
  8.  *
  9.  */
  10. #[ORM\Table(name'actuv2_quiz_answer')]
  11. #[ORM\Entity(repositoryClassActuv2QuizAnswerRepository::class)]
  12. class Actuv2QuizAnswer
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      */
  18.     #[ORM\Column(name'id'type'bigint'nullablefalse)]
  19.     #[ORM\Id]
  20.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  21.     private $id;
  22.     #[ORM\Column(name'answer'type'text'nullablefalse)]
  23.     private $answer;
  24.     #[ORM\ManyToOne(targetEntityActuv2Quiz::class, inversedBy'answers')]
  25.     #[ORM\JoinColumn(nullablefalse)]
  26.     private $quiz;
  27.     #[ORM\Column(name'correct'type'boolean'nullabletrue)]
  28.     private $correct false;
  29.     public function __construct()
  30.     {
  31.     }
  32.     public function getId(): ?string
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getAnswer(): ?string
  37.     {
  38.         return $this->answer;
  39.     }
  40.     public function setAnswer(?string $answer): self
  41.     {
  42.         $this->answer $answer;
  43.         return $this;
  44.     }
  45.     public function getquiz(): ?Actuv2Quiz
  46.     {
  47.         return $this->quiz;
  48.     }
  49.     public function setquiz(?Actuv2Quiz $quiz): self
  50.     {
  51.         $this->quiz $quiz;
  52.         return $this;
  53.     }
  54.     public function getCorrect(): ?bool
  55.     {
  56.         return $this->correct;
  57.     }
  58.     public function setCorrect(?bool $correct): self
  59.     {
  60.         $this->correct $correct;
  61.         return $this;
  62.     }
  63. }