PHP 클래스 Ddd\Application\Notification\NotificationService

파일 보기 프로젝트 열기: carlosbuenosvinos/ddd 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Ddd\Application\EventStore $anEventStore, Ddd\Application\Notification\PublishedMessageTracker $aPublishedMessageTracker, Ddd\Application\Notification\MessageProducer $aMessageProducer )
publishNotifications ( $exchangeName ) : integer

보호된 메소드들

메소드 설명
eventStore ( ) : Ddd\Application\EventStore
publishedMessageTracker ( ) : Ddd\Application\Notification\PublishedMessageTracker

비공개 메소드들

메소드 설명
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 )

메소드 상세

__construct() 공개 메소드

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 eventStore ( ) : Ddd\Application\EventStore
리턴 Ddd\Application\EventStore

publishNotifications() 공개 메소드

public publishNotifications ( $exchangeName ) : integer
리턴 integer

publishedMessageTracker() 보호된 메소드

protected publishedMessageTracker ( ) : Ddd\Application\Notification\PublishedMessageTracker
리턴 Ddd\Application\Notification\PublishedMessageTracker