public static function getInstance()
    {
        if (!function_exists("curl_init")) {
            Error::throwError("cine");
        }

        static $inst = null;
        if ($inst === null) {
            $inst = new Connection();
            $inst->client_user_agent = $inst->getBaseClientUserAgent();
        }
        return $inst;
    }
public static function getInstance()
    {
        if (!function_exists("curl_init")) {
            Error::throwError("cine");
        }

        static $inst = null;
        if ($inst === null) {
            $inst = new Connection();
            $inst->client_user_agent = $inst->getBaseClientUserAgent();
        }
        return $inst;
    }
public static function getInstance ( ) { if ( ! function_exists ( "curl_init" ) ) { Error :: throwError ( "cine" ) ; } static $ inst = null ; if ( $ inst === null ) { $ inst = new Connection ( ) ; $ inst -> client_user_agent = $ inst -> getBaseClientUserAgent ( ) ; } return $ inst ; }
Call this method to get singleton

@return Connection
Call this method to get singleton