<?phpnamespace App\Entity;use App\Repository\ReponsePersonneRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ReponsePersonneRepository::class) */class ReponsePersonne{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="text", nullable=true) */ private $proposition; /** * @ORM\ManyToOne(targetEntity=QuestionTestB1::class, inversedBy="reponsePersonnes") */ private $question; /** * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="reponsePersonnes") */ private $tier; /** * @ORM\Column(type="boolean", nullable=true) */ private $close; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateCompo; /** * @ORM\Column(type="text", nullable=true) */ private $cletest; /** * @ORM\Column(type="float", nullable=true) */ private $noteAttribuer; /** * @ORM\OneToMany(targetEntity=ReponsePersonneChoisir::class, mappedBy="reponsePerson") */ private $reponsePersonneChoisirs; public function __construct() { $this->reponsePersonneChoisirs = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getProposition(): ?string { return $this->proposition; } public function setProposition(?string $proposition): self { $this->proposition = $proposition; return $this; } public function getQuestion(): ?QuestionTestB1 { return $this->question; } public function setQuestion(?QuestionTestB1 $question): self { $this->question = $question; return $this; } public function getTier(): ?Tier { return $this->tier; } public function setTier(?Tier $tier): self { $this->tier = $tier; return $this; } public function isClose(): ?bool { return $this->close; } public function setClose(?bool $close): self { $this->close = $close; return $this; } public function getDateCompo(): ?\DateTimeInterface { return $this->dateCompo; } public function setDateCompo(?\DateTimeInterface $dateCompo): self { $this->dateCompo = $dateCompo; return $this; } public function getCletest(): ?string { return $this->cletest; } public function setCletest(?string $cletest): self { $this->cletest = $cletest; return $this; } public function getNoteAttribuer(): ?float { return $this->noteAttribuer; } public function setNoteAttribuer(?float $noteAttribuer): self { $this->noteAttribuer = $noteAttribuer; return $this; } /** * @return Collection<int, ReponsePersonneChoisir> */ public function getReponsePersonneChoisirs(): Collection { return $this->reponsePersonneChoisirs; } public function addReponsePersonneChoisir(ReponsePersonneChoisir $reponsePersonneChoisir): self { if (!$this->reponsePersonneChoisirs->contains($reponsePersonneChoisir)) { $this->reponsePersonneChoisirs[] = $reponsePersonneChoisir; $reponsePersonneChoisir->setReponsePerson($this); } return $this; } public function removeReponsePersonneChoisir(ReponsePersonneChoisir $reponsePersonneChoisir): self { if ($this->reponsePersonneChoisirs->removeElement($reponsePersonneChoisir)) { // set the owning side to null (unless already changed) if ($reponsePersonneChoisir->getReponsePerson() === $this) { $reponsePersonneChoisir->setReponsePerson(null); } } return $this; }}