original_string: function build(): string
      {
          if ($this->host !== null && $this->preferredFormat === static::ABSOLUTE) {
              return $this->buildAbsolute();
          } else {
              return $this->buildRelative();
          }
      }
code: function build(): string
      {
          if ($this->host !== null && $this->preferredFormat === static::ABSOLUTE) {
              return $this->buildAbsolute();
          } else {
              return $this->buildRelative();
          }
      }
code_tokens: function build ( ) : string { if ( $ this -> host !== null && $ this -> preferredFormat === static :: ABSOLUTE ) { return $ this -> buildAbsolute ( ) ; } else { return $ this -> buildRelative ( ) ; } }
docstring: Build an absolute or relative URL
  
  - if no host is specified, a relative URL will be returned
  - if the host is specified, an absolute URL will be returned
  (unless the preferred format option is set to relative)
  
  @see Url::setPreferredFormat()
docstring_tokens: Build an absolute or relative URL