public function getUser(): string
    {
        if (!isset($this->segments['user'])) {
            throw new UrlException('Unable to get user for ' . $this->url);
        }

        return $this->segments['user'];
    }