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

  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. #[ORM\Entity(repositoryClassCursusReponsesRepository::class)]
  10. class CursusReponses extends AbstractEntity
  11. {
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private ?string $reponse null;
  14.     #[ORM\Column(type'decimal'precision3scale2nullabletrue)]
  15.     private ?string $note null;
  16.     #[ORM\ManyToOne(targetEntityCursusQuestions::class, cascade: ['persist'])]
  17.     private ?CursusQuestions $cursusQuestion null;
  18.     #[ORM\ManyToOne(targetEntityEntretien::class, cascade: ['persist'], inversedBy'reponses')]
  19.     private ?Entretien $entretien null;
  20.     #[ORM\JoinColumn(nullabletrue)]
  21.     #[ORM\ManyToOne(targetEntityPersonne::class, inversedBy'reponses')]
  22.     private ?Personne $personne null;
  23.     #[ORM\JoinColumn(nullabletrue)]
  24.     #[ORM\ManyToOne(targetEntityDossier::class, inversedBy'reponses')]
  25.     private ?Dossier $dossier null;
  26.     public function getReponse(): ?string
  27.     {
  28.         return $this->reponse;
  29.     }
  30.     public function setReponse(?string $reponse): self
  31.     {
  32.         $this->reponse $reponse;
  33.         return $this;
  34.     }
  35.     public function getNote(): ?float
  36.     {
  37.         return $this->note;
  38.     }
  39.     public function setNote(?float $note): self
  40.     {
  41.         $this->note $note;
  42.         return $this;
  43.     }
  44.     public function getCursusQuestion(): ?CursusQuestions
  45.     {
  46.         return $this->cursusQuestion;
  47.     }
  48.     public function setCursusQuestion(?CursusQuestions $cursusQuestion): self
  49.     {
  50.         $this->cursusQuestion $cursusQuestion;
  51.         return $this;
  52.     }
  53.     public function getEntretien(): ?Entretien
  54.     {
  55.         return $this->entretien;
  56.     }
  57.     public function setEntretien(?Entretien $entretien): self
  58.     {
  59.         $this->entretien $entretien;
  60.         return $this;
  61.     }
  62.     public function getPersonne(): ?Personne
  63.     {
  64.         return $this->personne;
  65.     }
  66.     public function setPersonne(?Personne $personne): self
  67.     {
  68.         $this->personne $personne;
  69.         return $this;
  70.     }
  71.     public function getDossier(): ?Dossier
  72.     {
  73.         return $this->dossier;
  74.     }
  75.     public function setDossier(?Dossier $dossier): self
  76.     {
  77.         $this->dossier $dossier;
  78.         return $this;
  79.     }
  80. }