private function getUri(): UriInterface
    {
        $uri = $this->getNewUri();

        if (!empty($this->apiUrl['scheme'])) {
            $uri = $uri->withScheme($this->apiUrl['scheme']);
        }

        if (!empty($this->apiUrl['host'])) {
            $uri = $uri->withHost($this->apiUrl['host']);
        }

        if (!empty($this->apiUrl['port'])) {
            $uri = $uri->withPort($this->apiUrl['port']);
        }

        if (!empty($this->apiUrl['path'])) {
            $uri = $uri->withPath($this->apiUrl['path']);
        }

        if (!empty($this->apiUrl['query'])) {
            $uri = $uri->withQuery($this->apiUrl['query']);
        }

        if (!empty($this->apiUrl['fragment'])) {
            $uri = $uri->withFragment($this->apiUrl['fragment']);
        }

        return $uri;
    }
private function getUri(): UriInterface
    {
        $uri = $this->getNewUri();

        if (!empty($this->apiUrl['scheme'])) {
            $uri = $uri->withScheme($this->apiUrl['scheme']);
        }

        if (!empty($this->apiUrl['host'])) {
            $uri = $uri->withHost($this->apiUrl['host']);
        }

        if (!empty($this->apiUrl['port'])) {
            $uri = $uri->withPort($this->apiUrl['port']);
        }

        if (!empty($this->apiUrl['path'])) {
            $uri = $uri->withPath($this->apiUrl['path']);
        }

        if (!empty($this->apiUrl['query'])) {
            $uri = $uri->withQuery($this->apiUrl['query']);
        }

        if (!empty($this->apiUrl['fragment'])) {
            $uri = $uri->withFragment($this->apiUrl['fragment']);
        }

        return $uri;
    }
private function getUri ( ) : UriInterface { $ uri = $ this -> getNewUri ( ) ; if ( ! empty ( $ this -> apiUrl [ 'scheme' ] ) ) { $ uri = $ uri -> withScheme ( $ this -> apiUrl [ 'scheme' ] ) ; } if ( ! empty ( $ this -> apiUrl [ 'host' ] ) ) { $ uri = $ uri -> withHost ( $ this -> apiUrl [ 'host' ] ) ; } if ( ! empty ( $ this -> apiUrl [ 'port' ] ) ) { $ uri = $ uri -> withPort ( $ this -> apiUrl [ 'port' ] ) ; } if ( ! empty ( $ this -> apiUrl [ 'path' ] ) ) { $ uri = $ uri -> withPath ( $ this -> apiUrl [ 'path' ] ) ; } if ( ! empty ( $ this -> apiUrl [ 'query' ] ) ) { $ uri = $ uri -> withQuery ( $ this -> apiUrl [ 'query' ] ) ; } if ( ! empty ( $ this -> apiUrl [ 'fragment' ] ) ) { $ uri = $ uri -> withFragment ( $ this -> apiUrl [ 'fragment' ] ) ; } return $ uri ; }
To get the PSR7 Uri instance to configure the PSR7 request to be able to dialog with the Sellsy API.

@return UriInterface
To get the PSR7 Uri instance to configure the PSR7 request to be able to dialog with the Sellsy API .