/** * @return exodAuthResponse */ public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * @param exodApp $app * * @return exodAuthResponseBase * @throws ilCloudException */ public static function getResponseInstance(exodApp $app) { switch ($app->getType()) { case exodApp::TYPE_BUSINESS: return exodAuthResponseBusiness::getInstance(); break; case exodApp::TYPE_PUBLIC: return exodAuthResponsePublic::getInstance(); break; } throw new ilCloudException(ilCloudException::UNKNONW_EXCEPTION, 'No App Type Found'); }