src/Domain/Value/Identifier/Uri.php
public function display(): string
    {
        $output = sprintf('%s:', $this->scheme);
        if ($this->authority !== null) {
            $output .= sprintf('//%s', $this->host);
            if ($this->port !== null) {
                $output .= sprintf(':%d', $this->port);
            }
        }
        $output .= $this->path;
        if ($this->query !== null) {
            $output .= sprintf('?%s', $this->query);
        }
        if ($this->fragment !== null) {
            $output .= sprintf('#%s', $this->fragment);
        }

        return $output;
    }
public function display(): string
    {
        $output = sprintf('%s:', $this->scheme);
        if ($this->authority !== null) {
            $output .= sprintf('//%s', $this->host);
            if ($this->port !== null) {
                $output .= sprintf(':%d', $this->port);
            }
        }
        $output .= $this->path;
        if ($this->query !== null) {
            $output .= sprintf('?%s', $this->query);
        }
        if ($this->fragment !== null) {
            $output .= sprintf('#%s', $this->fragment);
        }

        return $output;
    }
public function display ( ) : string { $ output = sprintf ( '%s:' , $ this -> scheme ) ; if ( $ this -> authority !== null ) { $ output .= sprintf ( '//%s' , $ this -> host ) ; if ( $ this -> port !== null ) { $ output .= sprintf ( ':%d' , $ this -> port ) ; } } $ output .= $ this -> path ; if ( $ this -> query !== null ) { $ output .= sprintf ( '?%s' , $ this -> query ) ; } if ( $ this -> fragment !== null ) { $ output .= sprintf ( '#%s' , $ this -> fragment ) ; } return $ output ; }
Retrieves string representation without user info

@return string
Retrieves string representation without user info