public function onDeliveryEnd(OrderEvent $event) { $emailAddress = $this->getEmailAddress($event); $this->communicationService->sendSatisfactionSurvey($emailAddress, $event->getOrder()->getId()); }