protected function setHost($host, $port = null)
    {
        $this->host = $host;
        if ($port !== null) {
            if (is_numeric($port)) {
                $this->port = (int) $port;
            } else {
                throw new ConfigurationException("Port '{$port}' is not numeric");
            }
        }
    }
protected function setHost($host, $port = null)
    {
        $this->host = $host;
        if ($port !== null) {
            if (is_numeric($port)) {
                $this->port = (int) $port;
            } else {
                throw new ConfigurationException("Port '{$port}' is not numeric");
            }
        }
    }
protected function setHost ( $ host , $ port = null ) { $ this -> host = $ host ; if ( $ port !== null ) { if ( is_numeric ( $ port ) ) { $ this -> port = ( int ) $ port ; } else { throw new ConfigurationException ( "Port '{$port}' is not numeric" ) ; } } }
Sets hostname and optional port

@param string $host the hostname
@param mixed  $port the port

@return void
@throws \Puzzle\Exceptions\ConfigurationException
Sets hostname and optional port