original_string: public function getUrl()
      {
          $url = $this->getBaseUrl();
  
          if ($query = $this->getQueryString()) {
              if ($url) {
                  if (!$this->path) {
                      $url .= '/';
                  }
                  $url .= '?';
              }
  
              $url .= $query;
          }
  
          if (isset($this->fragment)) {
              $url .= '#' . $this->fragment;
          }
  
          return $url;
      }
code: public function getUrl()
      {
          $url = $this->getBaseUrl();
  
          if ($query = $this->getQueryString()) {
              if ($url) {
                  if (!$this->path) {
                      $url .= '/';
                  }
                  $url .= '?';
              }
  
              $url .= $query;
          }
  
          if (isset($this->fragment)) {
              $url .= '#' . $this->fragment;
          }
  
          return $url;
      }
code_tokens: public function getUrl ( ) { $ url = $ this -> getBaseUrl ( ) ; if ( $ query = $ this -> getQueryString ( ) ) { if ( $ url ) { if ( ! $ this -> path ) { $ url .= '/' ; } $ url .= '?' ; } $ url .= $ query ; } if ( isset ( $ this -> fragment ) ) { $ url .= '#' . $ this -> fragment ; } return $ url ; }
docstring: Retrieve the complete generated URL.
  
  @return string
docstring_tokens: Retrieve the complete generated URL .