original_string: function buildRelative(): string
      {
          $output = '';
  
          // path
          $output .= $this->path;
  
          // query
          if ($this->query) {
              $output .= '?';
              $output .= $this->getQueryString();
          }
  
          // fragment
          if ($this->fragment !== null) {
              $output .= '#';
              $output .= $this->fragment;
          }
  
          return $output;
      }
code: function buildRelative(): string
      {
          $output = '';
  
          // path
          $output .= $this->path;
  
          // query
          if ($this->query) {
              $output .= '?';
              $output .= $this->getQueryString();
          }
  
          // fragment
          if ($this->fragment !== null) {
              $output .= '#';
              $output .= $this->fragment;
          }
  
          return $output;
      }
code_tokens: function buildRelative ( ) : string { $ output = '' ; // path $ output .= $ this -> path ; // query if ( $ this -> query ) { $ output .= '?' ; $ output .= $ this -> getQueryString ( ) ; } // fragment if ( $ this -> fragment !== null ) { $ output .= '#' ; $ output .= $ this -> fragment ; } return $ output ; }
docstring: Build a relative URL
docstring_tokens: Build a relative URL