/** * @return Audible_Browser_CurlSession */ public function getCurlSession() { $curlSession = Audible_Browser_CurlSession::getInstance(); return $curlSession; }
/** * This implements the singleton pattern for this class. * @return resource */ public static function getInstance() { // Create a new instance if we don't already have one. if (true === is_null(self::$_instance)) { self::$_instance = new Audible_Browser_CurlSession(); } return self::$_instance; }