public function processActivity(Activity $activity, $data) { $activity->setName($this->remoteWebinar['subject']); $webinarStartDate = new \DateTime($this->remoteWebinar['times'][0]['startTime']); $activity->setStartDate($webinarStartDate); $webinarEndDate = new \DateTime($this->remoteWebinar['times'][0]['endTime']); $activity->setEndDate($webinarEndDate); $triggerHook = $this->hookService->getHook(self::TRIGGER_HOOK_IDENTIFIER); $activity->setTriggerHook($triggerHook); return $activity; }