equipments = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getExamen(): ?Examen { return $this->examen; } public function setExamen(?Examen $examen): self { $this->examen = $examen; return $this; } public function getStudent(): ?Access { return $this->student; } public function setStudent(?Access $student): self { $this->student = $student; return $this; } /** * @return Collection */ public function getEquipments(): Collection { return $this->equipments; } public function addEquipment(Equipment $equipment): self { if (!$this->equipments->contains($equipment)) { $this->equipments[] = $equipment; } return $this; } public function removeEquipment(Equipment $equipment): self { $this->equipments->removeElement($equipment); return $this; } }