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

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

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

@return string
@throws \Koldy\Url\Exception
Get URL s user