getMessage() public method

Returns a string representation of the message transported with this notification.
public getMessage ( ) : string
return string
Exemplo n.º 1
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     $notify = $notification->getParameter('hipchat_notify');
     $color = $notification->getParameter('hipchat_color') ?: HipChatClient::COLOR_YELLOW;
     $format = $notification->getParameter('hipchat_message_format') ?: HipChatClient::FORMAT_TEXT;
     $this->getHipchat()->message_room($notification->getHipChatRoom(), $notification->getHipChatSenderId(), $notification->getMessage(), isset($notify) ? $notify : true, $color, $format);
 }
Exemplo n.º 2
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     $this->getClient()->sendSms($notification->getRecipientNumber(), $notification->getMessage());
     return true;
 }
Exemplo n.º 3
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     $this->getMailer()->send($notification->getMessage());
     return true;
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function handle(NotificationInterface $notification)
 {
     /* @var TwilioNotification $notification */
     $this->twilio->account->messages->sendMessage($this->twilioNumber, $notification->getRecipientNumber(), $notification->getMessage());
 }
Exemplo n.º 5
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     $this->getPublisher()->basic_publish($notification->getMessage());
 }