path = $path; } public function getPath(): string { return $this->path; } public function hash(): string { $class = static::class; return md5("{$class}|{$this->path}"); } abstract public function toHtml(): string }