<?phpnamespace App\Entity;use App\Repository\TestB1Repository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TestB1Repository::class) */class TestB1{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="float") */ private $note; /** * @ORM\Column(type="date") */ private $DateTest; /** * @ORM\ManyToMany(targetEntity=QuestionTestB1::class, inversedBy="testB1s") */ private $questionTest; /** * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="testB1s") */ private $tier; /** * @ORM\Column(type="boolean", nullable=true) */ private $envoyer; public function __construct() { $this->questionTest = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getNote(): ?float { return $this->note; } public function setNote(float $note): self { $this->note = $note; return $this; } public function getDateTest(): ?\DateTimeInterface { return $this->DateTest; } public function setDateTest(\DateTimeInterface $DateTest): self { $this->DateTest = $DateTest; return $this; } /** * @return Collection<int, QuestionTestB1> */ public function getQuestionTest(): Collection { return $this->questionTest; } public function addQuestionTest(QuestionTestB1 $questionTest): self { if (!$this->questionTest->contains($questionTest)) { $this->questionTest[] = $questionTest; } return $this; } public function removeQuestionTest(QuestionTestB1 $questionTest): self { $this->questionTest->removeElement($questionTest); return $this; } public function getTier(): ?Tier { return $this->tier; } public function setTier(?Tier $tier): self { $this->tier = $tier; return $this; } public function isEnvoyer(): ?bool { return $this->envoyer; } public function setEnvoyer(?bool $envoyer): self { $this->envoyer = $envoyer; return $this; }}