/** * the singleton pattern * * @return Sipgate_Backend_Api */ public static function getInstance() { if (self::$_instance === NULL) { self::$_instance = new Sipgate_Backend_Api(); } return self::$_instance; }
/** * the singleton pattern * * @return Sipgate_Backend_Api */ public static function getInstance($_username, $_password, $_url) { if (self::$_instance === NULL) { self::$_instance = new Sipgate_Backend_Api($_username, $_password, $_url); } return self::$_instance; }