src/Entity/QuestionReponse.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\QuestionReponseRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=QuestionReponseRepository::class)
  9.  */
  10. class QuestionReponse
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $image;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $prenom;
  26.     /**
  27.      * @ORM\Column(type="date")
  28.      */
  29.     private $date_question;
  30.     /**
  31.      * @ORM\Column(type="date", nullable=true)
  32.      */
  33.     private $date_reponse;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $question;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $reponse;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     private $nom;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Cas::class, inversedBy="questionReponses",cascade={"persist"})
  48.      */
  49.     private $cas;
  50.     public function __construct()
  51.     {
  52.         $this->cas = new ArrayCollection();
  53.     }
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getImage(): ?string
  59.     {
  60.         return $this->image;
  61.     }
  62.     public function setImage(?string $image): self
  63.     {
  64.         $this->image = $image;
  65.         return $this;
  66.     }
  67.     public function getPrenom(): ?string
  68.     {
  69.         return $this->prenom;
  70.     }
  71.     public function setPrenom(?string $prenom): self
  72.     {
  73.         $this->prenom = $prenom;
  74.         return $this;
  75.     }
  76.     public function getDateQuestion(): ?\DateTimeInterface
  77.     {
  78.         return $this->date_question;
  79.     }
  80.     public function setDateQuestion(\DateTimeInterface $date_question): self
  81.     {
  82.         $this->date_question = $date_question;
  83.         return $this;
  84.     }
  85.     public function getDateReponse(): ?\DateTimeInterface
  86.     {
  87.         return $this->date_reponse;
  88.     }
  89.     public function setDateReponse(\DateTimeInterface $date_reponse): self
  90.     {
  91.         $this->date_reponse = $date_reponse;
  92.         return $this;
  93.     }
  94.     public function getQuestion(): ?string
  95.     {
  96.         return $this->question;
  97.     }
  98.     public function setQuestion(?string $question): self
  99.     {
  100.         $this->question = $question;
  101.         return $this;
  102.     }
  103.     public function getReponse(): ?string
  104.     {
  105.         return $this->reponse;
  106.     }
  107.     public function setReponse(?string $reponse): self
  108.     {
  109.         $this->reponse = $reponse;
  110.         return $this;
  111.     }
  112.     public function getNom(): ?string
  113.     {
  114.         return $this->nom;
  115.     }
  116.     public function setNom(?string $nom): self
  117.     {
  118.         $this->nom = $nom;
  119.         return $this;
  120.     }
  121.     public function getCas(): ?Cas
  122.     {
  123.         return $this->cas;
  124.     }
  125.     public function setCas(?Cas $cas): self
  126.     {
  127.         $this->cas = $cas;
  128.         return $this;
  129.     }
  130. }