public static function getInstance($key = "") { if (self::$_instance === null) { self::$_instance = new CloudService(); } if ($key) { self::$_instance->setKey($key); } return self::$_instance; }