slug = $slug; } /** * @return string */ public function getSlug(): string { return $this->slug; } /** * @return bool */ public function hasSlug(): bool { return isset($this->slug); } }