url = $url; $this->alt = $alt; $this->title = $title; } public function getUrl(): string { return $this->url; } public function getAlt(): ?string { return $this->alt; } public function getTitle(): ?string { return $this->title; } }