Ddd\Application\Notification\NotificationService::listUnpublishedNotifications PHP Method

listUnpublishedNotifications() private method

private listUnpublishedNotifications ( $mostRecentPublishedMessageId ) : StoredEvent[]
$mostRecentPublishedMessageId
return Ddd\Domain\Event\StoredEvent[]
    private function listUnpublishedNotifications($mostRecentPublishedMessageId)
    {
        $storeEvents = $this->eventStore()->allStoredEventsSince($mostRecentPublishedMessageId);
        // Vaughn Vernon converts StoredEvents into another objects: Notification
        // Is it really needed?
        return $storeEvents;
    }