<?phpnamespace App\Entity;use App\Repository\EpreuveTestb1Repository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=EpreuveTestb1Repository::class) */class EpreuveTestb1{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToMany(targetEntity=QuestionTestB1::class, inversedBy="epreuveTestb1s") */ private $questiontestb1; /** * @ORM\OneToMany(targetEntity=EvaluationTestb1::class, mappedBy="epreuve") */ private $evaluationTestb1s; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; public function __construct() { $this->questiontestb1 = new ArrayCollection(); $this->evaluationTestb1s = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return Collection<int, QuestionTestB1> */ public function getQuestiontestb1(): Collection { return $this->questiontestb1; } public function addQuestiontestb1(QuestionTestB1 $questiontestb1): self { if (!$this->questiontestb1->contains($questiontestb1)) { $this->questiontestb1[] = $questiontestb1; } return $this; } public function removeQuestiontestb1(QuestionTestB1 $questiontestb1): self { $this->questiontestb1->removeElement($questiontestb1); return $this; } /** * @return Collection<int, EvaluationTestb1> */ public function getEvaluationTestb1s(): Collection { return $this->evaluationTestb1s; } public function addEvaluationTestb1(EvaluationTestb1 $evaluationTestb1): self { if (!$this->evaluationTestb1s->contains($evaluationTestb1)) { $this->evaluationTestb1s[] = $evaluationTestb1; $evaluationTestb1->setEpreuve($this); } return $this; } public function removeEvaluationTestb1(EvaluationTestb1 $evaluationTestb1): self { if ($this->evaluationTestb1s->removeElement($evaluationTestb1)) { // set the owning side to null (unless already changed) if ($evaluationTestb1->getEpreuve() === $this) { $evaluationTestb1->setEpreuve(null); } } return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }}