original_string: public function absolute($relative = null)
      {
          $host = $this->getHost();
  
          if (null !== $relative) {
              $relative = '/' . ltrim($relative, '/');
          }
  
          return $host . $relative;
      }
code: public function absolute($relative = null)
      {
          $host = $this->getHost();
  
          if (null !== $relative) {
              $relative = '/' . ltrim($relative, '/');
          }
  
          return $host . $relative;
      }
code_tokens: public function absolute ( $ relative = null ) { $ host = $ this -> getHost ( ) ; if ( null !== $ relative ) { $ relative = '/' . ltrim ( $ relative , '/' ) ; } return $ host . $ relative ; }
docstring: Gets the absolute address.
  
  @param null|string $relative Optional; the relative address
  
  @return string Absolute address
docstring_tokens: Gets the absolute address .