<?phpnamespace App\Entity;use App\Repository\EvaluationReponduRepository;use DateTime;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=EvaluationReponduRepository::class) */class EvaluationRepondu{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Inscrit::class, cascade={"persist", "remove"}) * @ORM\JoinColumn(nullable=false) */ private $inscrit; /** * @ORM\ManyToOne(targetEntity=Evaluation::class, inversedBy="evaluationRepondus") * @ORM\JoinColumn(nullable=false) */ private $evaluation; /** * @ORM\Column(type="datetime") */ private $datereponse; /** * @ORM\Column(type="integer", nullable=true) */ private $note; /** * @ORM\ManyToMany(targetEntity=EvaluationReponduReponseField::class,cascade={"persist"}) */ private $evaluationreponduresponsefield; public function __construct() { $this->evaluationreponduresponsefield = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getInscrit(): ?Inscrit { return $this->inscrit; } public function setInscrit(Inscrit $inscrit): self { $this->inscrit = $inscrit; return $this; } public function getEvaluation(): ?Evaluation { return $this->evaluation; } public function setEvaluation(?Evaluation $evaluation): self { $this->evaluation = $evaluation; return $this; } public function getDatereponse(): ?\DateTimeInterface { return $this->datereponse; } public function setDatereponse(\DateTimeInterface $datereponse): self { $this->datereponse = $datereponse; return $this; } public function getNote(): ?int { return $this->note; } public function setNote(?int $note): self { $this->note = $note; return $this; } /** * @return Collection<int, EvaluationReponduReponseField> */ public function getEvaluationReponduReponseField(): Collection { return $this->evaluationreponduresponsefield; } public function addEvaluationReponduReponseField(EvaluationReponduReponseField $reponse): self { if (!$this->evaluationreponduresponsefield->contains($reponse)) { $this->evaluationreponduresponsefield[] = $reponse; } return $this; } public function removeEvaluationReponduReponseField(EvaluationReponduReponseField $reponse): self { $this->evaluationreponduresponsefield->removeElement($reponse); return $this; }}