name; } public function getPath(): string { return $this->path; } public function hasQuery(): bool { return !empty($this->query); } public function getQuery(): array { return $this->query; } public function hasFragment(): bool { return $this->fragment !== ''; } public function getFragment(): string { return $this->fragment; } }