send() public method

public send ( $exchangeName, string $notificationMessage, string $notificationType, integer $notificationId, DateTime $notificationOccurredOn )
$exchangeName
$notificationMessage string
$notificationType string
$notificationId integer
$notificationOccurredOn DateTime
 private function publish($exchangeName, StoredEvent $notification, MessageProducer $messageProducer)
 {
     $messageProducer->send($exchangeName, $this->serializer()->serialize($notification, 'json'), $notification->typeName(), $notification->eventId(), $notification->occurredOn());
     return $notification;
 }