members = new ArrayCollection(); $this->examens = new ArrayCollection(); $this->tags = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getOrganization(): ?Organization { return $this->organization; } public function setOrganization(?Organization $organization): self { $this->organization = $organization; return $this; } /** * @return Collection */ public function getMembers(): Collection { return $this->members; } public function addMember(Access $member): self { if (!$this->members->contains($member)) { $this->members[] = $member; } return $this; } public function removeMember(Access $member): self { $this->members->removeElement($member); return $this; } /** * @return Collection */ public function getExamens(): Collection { return $this->examens; } public function addExamen(Examen $examen): self { if (!$this->examens->contains($examen)) { $this->examens[] = $examen; $examen->setJury($this); } return $this; } public function removeExamen(Examen $examen): self { if ($this->examens->removeElement($examen)) { // set the owning side to null (unless already changed) if ($examen->getJury() === $this) { $examen->setJury(null); } } return $this; } /** * @return Collection */ public function getTags(): Collection { return $this->tags; } public function addTag(Tagg $tag): self { if (!$this->tags->contains($tag)) { $this->tags[] = $tag; } return $this; } public function removeTag(Tagg $tag): self { $this->tags->removeElement($tag); return $this; } }