src/Entity/EvaluationRepondu.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EvaluationReponduRepository;
  4. use DateTime;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity(repositoryClass=EvaluationReponduRepository::class)
  10.  */
  11. class EvaluationRepondu
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity=Inscrit::class, cascade={"persist", "remove"})
  21.      * @ORM\JoinColumn(nullable=false)
  22.      */
  23.     private $inscrit;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Evaluation::class, inversedBy="evaluationRepondus")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $evaluation;
  29.     /**
  30.      * @ORM\Column(type="datetime")
  31.      */
  32.     private $datereponse;
  33.     /**
  34.      * @ORM\Column(type="integer", nullable=true)
  35.      */
  36.     private $note;
  37.     /**
  38.      * @ORM\ManyToMany(targetEntity=EvaluationReponduReponseField::class,cascade={"persist"})
  39.      */
  40.     private $evaluationreponduresponsefield;
  41.     public function __construct()
  42.     {
  43.         $this->evaluationreponduresponsefield = new ArrayCollection();
  44.     }
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getInscrit(): ?Inscrit
  50.     {
  51.         return $this->inscrit;
  52.     }
  53.     public function setInscrit(Inscrit $inscrit): self
  54.     {
  55.         $this->inscrit $inscrit;
  56.         return $this;
  57.     }
  58.     public function getEvaluation(): ?Evaluation
  59.     {
  60.         return $this->evaluation;
  61.     }
  62.     public function setEvaluation(?Evaluation $evaluation): self
  63.     {
  64.         $this->evaluation $evaluation;
  65.         return $this;
  66.     }
  67.    
  68.     public function getDatereponse(): ?\DateTimeInterface
  69.     {
  70.         return $this->datereponse;
  71.     }
  72.     public function setDatereponse(\DateTimeInterface $datereponse): self
  73.     {
  74.         $this->datereponse $datereponse;
  75.         return $this;
  76.     }
  77.     public function getNote(): ?int
  78.     {
  79.         return $this->note;
  80.     }
  81.     public function setNote(?int $note): self
  82.     {
  83.         $this->note $note;
  84.         return $this;
  85.     }
  86.     /**
  87.      * @return Collection<int, EvaluationReponduReponseField>
  88.      */
  89.     public function getEvaluationReponduReponseField(): Collection
  90.     {
  91.         return $this->evaluationreponduresponsefield;
  92.     }
  93.     public function addEvaluationReponduReponseField(EvaluationReponduReponseField $reponse): self
  94.     {
  95.         if (!$this->evaluationreponduresponsefield->contains($reponse)) {
  96.             $this->evaluationreponduresponsefield[] = $reponse;
  97.         }
  98.         return $this;
  99.     }
  100.     public function removeEvaluationReponduReponseField(EvaluationReponduReponseField $reponse): self
  101.     {
  102.         $this->evaluationreponduresponsefield->removeElement($reponse);
  103.         return $this;
  104.     }
  105. }