src/Entity/QuizzResponse.php line 11

Open in your IDE?
  1. <?php
  2.     namespace App\Entity;
  3.     use App\Repository\QuizzResponseRepository;
  4.     use Doctrine\ORM\Mapping as ORM;
  5.     /**
  6.      * @ORM\Entity(repositoryClass=QuizzResponseRepository::class)
  7.      */
  8.     class QuizzResponse
  9.     {
  10.         /**
  11.          * @ORM\Id
  12.          * @ORM\GeneratedValue
  13.          * @ORM\Column(type="integer")
  14.          */
  15.         private $id;
  16.         /**
  17.          * @ORM\Column(type="string", length=255)
  18.          */
  19.         private $title;
  20.         /**
  21.          * @ORM\Column(type="boolean")
  22.          */
  23.         private $exact;
  24.         /**
  25.          * @ORM\ManyToOne(targetEntity=QuizzQuestion::class, inversedBy="position")
  26.          * @ORM\JoinColumn(nullable=false)
  27.          */
  28.         private $quizzQuestion;
  29.         /**
  30.          * @ORM\Column(type="integer")
  31.          */
  32.         private $position;
  33.         public function getId(): ?int
  34.         {
  35.             return $this->id;
  36.         }
  37.         public function getTitle(): ?string
  38.         {
  39.             return $this->title;
  40.         }
  41.         public function setTitlestring $title ): self
  42.         {
  43.             $this->title $title;
  44.             return $this;
  45.         }
  46.         public function getExact(): ?bool
  47.         {
  48.             return $this->exact;
  49.         }
  50.         public function setExactbool $exact ): self
  51.         {
  52.             $this->exact $exact;
  53.             return $this;
  54.         }
  55.         public function getQuizzQuestion(): ?QuizzQuestion
  56.         {
  57.             return $this->quizzQuestion;
  58.         }
  59.         public function setQuizzQuestion( ?QuizzQuestion $quizzQuestion ): self
  60.         {
  61.             $this->quizzQuestion $quizzQuestion;
  62.             return $this;
  63.         }
  64.         public function getPosition(): ?int
  65.         {
  66.             return $this->position;
  67.         }
  68.         public function setPositionint $position ): self
  69.         {
  70.             $this->position $position;
  71.             return $this;
  72.         }
  73.     }