company_id = $company_id; $subscription->user_id = $user_id; $subscription->target_url = ''; $subscription->event_id = 1; $subscription->format = 'JSON'; return $subscription; } }