src/Entity/EvaluationReponduReponseField.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 EvaluationReponduReponseField
  8. {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="boolean", length=1)
  17.      */
  18.     private $choisi;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity=Reponse::class)
  21.      * @ORM\JoinColumn(nullable=false)
  22.      */
  23.     private $reponse;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.   
  29.     public function getChoisi(): ?bool
  30.     {
  31.         return $this->choisi;
  32.     }
  33.     public function setChoisi(bool $bonnereponse): self
  34.     {
  35.         $this->choisi $bonnereponse;
  36.         return $this;
  37.     }
  38.     public function getReponse(): ?Reponse
  39.     {
  40.         return $this->reponse;
  41.     }
  42.     public function setReponse(?Reponse $question): self
  43.     {
  44.         $this->reponse $question;
  45.         return $this;
  46.     }
  47. }