/** * @param exodApp $exodApp * * @return exodClientBusiness */ public static function getInstance(exodApp $exodApp) { switch ($exodApp->getType()) { case exodApp::TYPE_BUSINESS: return new exodClientBusiness($exodApp); } }
/** * @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'); }