<?phpnamespace App\Entity;use App\Repository\SousQuestionRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=SousQuestionRepository::class) */class SousQuestion{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=QuestionTestB1::class, inversedBy="sousQuestions") */ private $questionJoin; /** * @ORM\OneToMany(targetEntity=PropositionReponse::class, mappedBy="sousQuestion") */ private $propositionReponseofSousquestion; /** * @ORM\Column(type="string", length=255) */ private $wording; public function __construct() { $this->propositionReponseofSousquestion = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getQuestionJoin(): ?QuestionTestB1 { return $this->questionJoin; } public function setQuestionJoin(?QuestionTestB1 $questionJoin): self { $this->questionJoin = $questionJoin; return $this; } /** * @return Collection<int, PropositionReponse> */ public function getPropositionReponseofSousquestion(): Collection { return $this->propositionReponseofSousquestion; } public function addPropositionReponseofSousquestion(PropositionReponse $propositionReponseofSousquestion): self { if (!$this->propositionReponseofSousquestion->contains($propositionReponseofSousquestion)) { $this->propositionReponseofSousquestion[] = $propositionReponseofSousquestion; $propositionReponseofSousquestion->setSousQuestion($this); } return $this; } public function removePropositionReponseofSousquestion(PropositionReponse $propositionReponseofSousquestion): self { if ($this->propositionReponseofSousquestion->removeElement($propositionReponseofSousquestion)) { // set the owning side to null (unless already changed) if ($propositionReponseofSousquestion->getSousQuestion() === $this) { $propositionReponseofSousquestion->setSousQuestion(null); } } return $this; } public function getWording(): ?string { return $this->wording; } public function setWording(string $wording): self { $this->wording = $wording; return $this; }}