public function getUrl(): \Psr\Http\Message\UriInterface
    {
        if (!$this->url) {
            return new Uri();
        }

        return $this->url;
    }
public function getUrl(): \Psr\Http\Message\UriInterface
    {
        if (!$this->url) {
            return new Uri();
        }

        return $this->url;
    }
public function getUrl ( ) : \ Psr \ Http \ Message \ UriInterface { if ( ! $ this -> url ) { return new Uri ( ) ; } return $ this -> url ; }
Returns the public URL for this object.

@return \Psr\Http\Message\UriInterface
Returns the public URL for this object .