notificationPayload() public method

public notificationPayload ( )
Example #1
0
 /**
  * Handle the event.
  *
  * @param HasSlackPayloadInterface $event
  * @dispatches SlackNotify
  */
 public function handle(HasSlackPayloadInterface $event)
 {
     foreach ($event->heartbeat->project->notifications as $notification) {
         $this->dispatch(new SlackNotify($notification, $event->notificationPayload()));
     }
 }