<?php
namespace App\Entity\Gestiform\Admin\Cursus;
use App\Entity\AbstractEntity;
use App\Entity\Gestiform\Formations\Dossier\Dossier;
use App\Entity\Gestiform\Users\Personne;
use App\Repository\Gestiform\Admin\Cursus\CursusReponsesRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CursusReponsesRepository::class)
*/
class CursusReponses extends AbstractEntity
{
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $reponse = null;
/**
* @ORM\Column(type="decimal", precision=3, scale=2, nullable=true)
*/
private ?float $note = null;
/**
* @ORM\ManyToOne(targetEntity=CursusQuestions::class,cascade={"persist"})
*/
private ?CursusQuestions $cursusQuestion = null;
/**
* @ORM\ManyToOne(targetEntity=Entretien::class, inversedBy="reponses",cascade={"persist"})
*/
private ?Entretien $entretien = null;
/**
* @ORM\ManyToOne(targetEntity=Personne::class, inversedBy="reponses")
* @ORM\JoinColumn(nullable=true)
*/
private ?Personne $personne = null;
/**
* @ORM\ManyToOne(targetEntity=Dossier::class, inversedBy="reponses")
* @ORM\JoinColumn(nullable=true)
*/
private ?Dossier $dossier = null;
public function getReponse(): ?string
{
return $this->reponse;
}
public function setReponse(?string $reponse): self
{
$this->reponse = $reponse;
return $this;
}
public function getNote(): ?float
{
return $this->note;
}
public function setNote(?float $note): self
{
$this->note = $note;
return $this;
}
public function getCursusQuestion(): ?CursusQuestions
{
return $this->cursusQuestion;
}
public function setCursusQuestion(?CursusQuestions $cursusQuestion): self
{
$this->cursusQuestion = $cursusQuestion;
return $this;
}
public function getEntretien(): ?Entretien
{
return $this->entretien;
}
public function setEntretien(?Entretien $entretien): self
{
$this->entretien = $entretien;
return $this;
}
public function getPersonne(): ?Personne
{
return $this->personne;
}
public function setPersonne(?Personne $personne): self
{
$this->personne = $personne;
return $this;
}
public function getDossier(): ?Dossier
{
return $this->dossier;
}
public function setDossier(?Dossier $dossier): self
{
$this->dossier = $dossier;
return $this;
}
}