final class EventsToPublish (View source)

internal  only used during event publishing (from within command handlers) - and their implementation is not API
 

Result of {CommandHandlerInterface::handle()} that basically represents an {EventStoreInterface::commit()} call but allows for intercepting and decorating events in {ContentRepository::handle()}

Methods

__construct(StreamName $streamName, Events $events, ExpectedVersion $expectedVersion)

No description

withAppendedEvents(Events $events)

No description

Details

__construct(StreamName $streamName, Events $events, ExpectedVersion $expectedVersion)

No description

Parameters

StreamName $streamName
Events $events
ExpectedVersion $expectedVersion

EventsToPublish withAppendedEvents(Events $events)

No description

Parameters

Events $events

Return Value

EventsToPublish