original_string: protected function setHost($host)
      {
          $host = strtolower($host);
          
          if ($host !== '' && !$this->isValidDomain($host) && !$this->isValidIpv4($host) && !$this->isValidIpv6($host)) {
              throw new \InvalidArgumentException("Invalid hostname '$host'");
          }
          
          $this->host = $host;
      }
code: protected function setHost($host)
      {
          $host = strtolower($host);
          
          if ($host !== '' && !$this->isValidDomain($host) && !$this->isValidIpv4($host) && !$this->isValidIpv6($host)) {
              throw new \InvalidArgumentException("Invalid hostname '$host'");
          }
          
          $this->host = $host;
      }
code_tokens: protected function setHost ( $ host ) { $ host = strtolower ( $ host ) ; if ( $ host !== '' && ! $ this -> isValidDomain ( $ host ) && ! $ this -> isValidIpv4 ( $ host ) && ! $ this -> isValidIpv6 ( $ host ) ) { throw new \ InvalidArgumentException ( "Invalid hostname '$host'" ) ; } $ this -> host = $ host ; }
docstring: Set the host
  
  @param string $host
docstring_tokens: Set the host