src/Entity/Gestiform/Admin/Cursus/CursusReponses.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gestiform\Admin\Cursus;
  3. use App\Entity\AbstractEntity;
  4. use App\Entity\Gestiform\Formations\Dossier\Dossier;
  5. use App\Entity\Gestiform\Users\Personne;
  6. use App\Repository\Gestiform\Admin\Cursus\CursusReponsesRepository;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity(repositoryClass=CursusReponsesRepository::class)
  11.  */
  12. class CursusReponses extends AbstractEntity
  13. {
  14.     /**
  15.      * @ORM\Column(type="string", length=255, nullable=true)
  16.      */
  17.     private ?string $reponse null;
  18.     /**
  19.      * @ORM\Column(type="decimal", precision=3, scale=2, nullable=true)
  20.      */
  21.     private ?float $note null;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=CursusQuestions::class,cascade={"persist"})
  24.      */
  25.     private ?CursusQuestions $cursusQuestion null;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Entretien::class, inversedBy="reponses",cascade={"persist"})
  28.      */
  29.     private ?Entretien $entretien null;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=Personne::class, inversedBy="reponses")
  32.      * @ORM\JoinColumn(nullable=true)
  33.      */
  34.     private ?Personne $personne null;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=Dossier::class, inversedBy="reponses")
  37.      * @ORM\JoinColumn(nullable=true)
  38.      */
  39.     private ?Dossier $dossier null;
  40.     public function getReponse(): ?string
  41.     {
  42.         return $this->reponse;
  43.     }
  44.     public function setReponse(?string $reponse): self
  45.     {
  46.         $this->reponse $reponse;
  47.         return $this;
  48.     }
  49.     public function getNote(): ?float
  50.     {
  51.         return $this->note;
  52.     }
  53.     public function setNote(?float $note): self
  54.     {
  55.         $this->note $note;
  56.         return $this;
  57.     }
  58.     public function getCursusQuestion(): ?CursusQuestions
  59.     {
  60.         return $this->cursusQuestion;
  61.     }
  62.     public function setCursusQuestion(?CursusQuestions $cursusQuestion): self
  63.     {
  64.         $this->cursusQuestion $cursusQuestion;
  65.         return $this;
  66.     }
  67.     public function getEntretien(): ?Entretien
  68.     {
  69.         return $this->entretien;
  70.     }
  71.     public function setEntretien(?Entretien $entretien): self
  72.     {
  73.         $this->entretien $entretien;
  74.         return $this;
  75.     }
  76.     public function getPersonne(): ?Personne
  77.     {
  78.         return $this->personne;
  79.     }
  80.     public function setPersonne(?Personne $personne): self
  81.     {
  82.         $this->personne $personne;
  83.         return $this;
  84.     }
  85.     public function getDossier(): ?Dossier
  86.     {
  87.         return $this->dossier;
  88.     }
  89.     public function setDossier(?Dossier $dossier): self
  90.     {
  91.         $this->dossier $dossier;
  92.         return $this;
  93.     }
  94. }