PHP Class Ddd\Application\Notification\NotificationService

Datei anzeigen Open project: carlosbuenosvinos/ddd Class Usage Examples

Public Methods

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

Protected Methods

Method Description
eventStore ( ) : Ddd\Application\EventStore
publishedMessageTracker ( ) : Ddd\Application\Notification\PublishedMessageTracker

Private Methods

Method 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 method

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 method

protected eventStore ( ) : Ddd\Application\EventStore
return Ddd\Application\EventStore

publishNotifications() public method

public publishNotifications ( $exchangeName ) : integer
return integer

publishedMessageTracker() protected method

protected publishedMessageTracker ( ) : Ddd\Application\Notification\PublishedMessageTracker
return Ddd\Application\Notification\PublishedMessageTracker