original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: To get the PSR7 Uri instance to configure the PSR7 request to be able to dialog with the Sellsy API.
  
  @return UriInterface
docstring_tokens: To get the PSR7 Uri instance to configure the PSR7 request to be able to dialog with the Sellsy API .