src/Entity/Reponse.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass=ReponseRepository::class)
  6.  */
  7. class Reponse
  8. {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="text")
  17.      */
  18.     private $lilibelle;
  19.     /**
  20.      * @ORM\Column(type="boolean", length=1)
  21.      */
  22.     private $bonnereponse;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Question::class, inversedBy="reponses")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $question;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getLilibelle(): ?string
  33.     {
  34.         return $this->lilibelle;
  35.     }
  36.     public function setLilibelle(string $lilibelle): self
  37.     {
  38.         $this->lilibelle $lilibelle;
  39.         return $this;
  40.     }
  41.     public function getBonnereponse(): ?bool
  42.     {
  43.         return $this->bonnereponse;
  44.     }
  45.     public function setBonnereponse(bool $bonnereponse): self
  46.     {
  47.         $this->bonnereponse $bonnereponse;
  48.         return $this;
  49.     }
  50.     public function getQuestion(): ?Question
  51.     {
  52.         return $this->question;
  53.     }
  54.     public function setQuestion(?Question $question): self
  55.     {
  56.         $this->question $question;
  57.         return $this;
  58.     }
  59. }