getLegend(); } public function getPath(): ?string { return $this->path; } public function setPath(?string $path): self { $this->path = $path; return $this; } public function getLegend(): ?string { return $this->legend; } public function setLegend(?string $legend): self { $this->legend = $legend; return $this; } }