option('con'); $param = $this->option('param'); if(!empty($con)) { switch ($con) { case 'jobs': if($param['notificationType'] == 'ANALYTICS_COMPLETE') { $accountAggregator = new AccountAggregator(new Request($param)); $accountAggregator->fetchAnalytics(); } else if($param['notificationType'] == 'CONSENT_ACTIVE') { $accountAggregator = new AccountAggregator(new Request($param)); $accountAggregator->saveConsent(); } break; default: return Utility::handlerSendFailed([\Config::get("constants.txt.txt_errors") => ['No case found to handle in ExecuteJob']]); } } else { return Utility::handlerSendFailed([Config::get("constants.txt.txt_errors") => ['Context is missing']]); } } }