fetchNotification(); $this->fetchMarketingCampaign(); } } /** * Fetches new notifications. * * This method is triggered by the scheduled cron event * and retrieves new notifications. */ private function fetchNotification() { $notificationFetcher = new NotificationFetcher(); $notificationFetcher->fetchNotification(); } /** * Fetches marketing campaign. * * This method is triggered by the scheduled cron event * and retrieve marketing campaign. */ private function fetchMarketingCampaign() { $marketingCampaignFetcher = new MarketingCampaignFetcher(); $marketingCampaignFetcher->fetchMarketingCampaign(); } }