PHP Class Ddd\Application\Notification\NotificationService

Afficher le fichier Open project: carlosbuenosvinos/ddd Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Ddd\Application\EventStore $anEventStore, Ddd\Application\Notification\PublishedMessageTracker $aPublishedMessageTracker, Ddd\Application\Notification\MessageProducer $aMessageProducer )
publishNotifications ( $exchangeName ) : integer

Méthodes protégées

Méthode Description
eventStore ( ) : Ddd\Application\EventStore
publishedMessageTracker ( ) : Ddd\Application\Notification\PublishedMessageTracker

Private Methods

Méthode Description
listUnpublishedNotifications ( $mostRecentPublishedMessageId ) : StoredEvent[]
messageProducer ( )
publish ( $exchangeName, StoredEvent $notification, Ddd\Application\Notification\MessageProducer $messageProducer )
serializer ( ) : JMS\Serializer\Serializer
trackMostRecentPublishedMessage ( Ddd\Application\Notification\PublishedMessageTracker $publishedMessageTracker, $exchangeName, $notification )

Method Details

__construct() public méthode

public __construct ( Ddd\Application\EventStore $anEventStore, Ddd\Application\Notification\PublishedMessageTracker $aPublishedMessageTracker, Ddd\Application\Notification\MessageProducer $aMessageProducer )
$anEventStore Ddd\Application\EventStore
$aPublishedMessageTracker Ddd\Application\Notification\PublishedMessageTracker
$aMessageProducer Ddd\Application\Notification\MessageProducer

eventStore() protected méthode

protected eventStore ( ) : Ddd\Application\EventStore
Résultat Ddd\Application\EventStore

publishNotifications() public méthode

public publishNotifications ( $exchangeName ) : integer
Résultat integer

publishedMessageTracker() protected méthode

protected publishedMessageTracker ( ) : Ddd\Application\Notification\PublishedMessageTracker
Résultat Ddd\Application\Notification\PublishedMessageTracker