speakers = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getUid(): ?string { return $this->uid; } public function setUid(string $uid): self { $this->uid = $uid; return $this; } public function getSummary(): ?string { return $this->summary; } public function setSummary(?string $summary): self { $this->summary = $summary; return $this; } public function getCleanedDescription(): string { return trim(preg_replace('/\s*#\{project:\d+\}\s*/', "\n", $this->getDescription())); } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getStartAt(): ?\DateTimeInterface { return $this->startAt; } public function setStartAt(?\DateTimeInterface $startAt): self { $this->startAt = $startAt; return $this; } public function getFinishAt(): ?\DateTimeInterface { return $this->finishAt; } public function setFinishAt(?\DateTimeInterface $finishAt): self { $this->finishAt = $finishAt; return $this; } public function getProjects(): ?Project { return $this->projects; } public function setProjects(?Project $projects): self { $this->projects = $projects; return $this; } /** * @return Collection */ public function getSpeakers(): Collection { return $this->speakers; } public function addSpeaker(Speaker $speaker): self { if (!$this->speakers->contains($speaker)) { $this->speakers[] = $speaker; } return $this; } public function removeSpeaker(Speaker $speaker): self { $this->speakers->removeElement($speaker); return $this; } }