original_string: public function setHost($host)
      {
          if (! (self::_isHostname($host) || self::_isIpAddress($host))) {
  
              throw new InvalidArgumentException("Invalid host ($host)");
          }
  
          $this->_host = strtolower(trim($host));
      }
code: public function setHost($host)
      {
          if (! (self::_isHostname($host) || self::_isIpAddress($host))) {
  
              throw new InvalidArgumentException("Invalid host ($host)");
          }
  
          $this->_host = strtolower(trim($host));
      }
code_tokens: public function setHost ( $ host ) { if ( ! ( self :: _isHostname ( $ host ) || self :: _isIpAddress ( $ host ) ) ) { throw new InvalidArgumentException ( "Invalid host ($host)" ) ; } $ this -> _host = strtolower ( trim ( $ host ) ) ; }
docstring: Sets the host for this URL.
  
  @param string $host The hostname or IP address for this URL.
  
  @throws InvalidArgumentException If the given host is not an IP address or hostname.
  
  @return void
docstring_tokens: Sets the host for this URL .