EventsToPublish
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
Details
__construct(StreamName $streamName, Events $events, ExpectedVersion $expectedVersion)
No description
EventsToPublish
withAppendedEvents(Events $events)
No description