/** * Set the host name * * @param string $host Hostname * @return void */ protected static function _setHost($host) { self::$host = $host; if (strpos(self::$host, ':') !== false) { self::$host = substr(self::$host, 0, strpos(self::$host, ':')); } }