/** * @inheritdoc */ protected function getNotification($body) { $notification = new Notification(); $notification->setReceiver($this->receiver)->setSubject($this->translator->trans($this->subject))->setBody($body); return $notification; }
/** * @param string $body * * @return NotificationInterface */ protected function getNotification($body) { $notification = new Notification(); $notification->setReceiver($this->receiver)->setBody($body); return $notification; }