Namshi\Notificator\NotificationInterface::getMessage PHP Method

getMessage() public method

Returns a string representation of the message transported with this notification.
public getMessage ( ) : string
return string
    public function getMessage();

Usage Example

Example #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);
 }
All Usage Examples Of Namshi\Notificator\NotificationInterface::getMessage
NotificationInterface