conferences = new ArrayCollection(); $this->interventions = new ArrayCollection(); } public function __toString() { return (string) $this->getLabel(); } public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } /** * @return Collection */ public function getConferences(): Collection { return $this->conferences; } public function addConference(Conference $conference): self { if (!$this->conferences->contains($conference)) { $this->conferences[] = $conference; $conference->setThemeType($this); } return $this; } public function removeConference(Conference $conference): self { if ($this->conferences->removeElement($conference)) { // set the owning side to null (unless already changed) if ($conference->getThemeType() === $this) { $conference->setThemeType(null); } } return $this; } /** * @return Collection */ public function getInterventions(): Collection { return $this->interventions; } public function addIntervention(Intervention $intervention): self { if (!$this->interventions->contains($intervention)) { $this->interventions[] = $intervention; $intervention->setThemeType($this); } return $this; } public function removeIntervention(Intervention $intervention): self { if ($this->interventions->removeElement($intervention)) { // set the owning side to null (unless already changed) if ($intervention->getThemeType() === $this) { $intervention->setThemeType(null); } } return $this; } }