Skip to content

Commit b76761c

Browse files
author
Alexander Miertsch
authored
Merge pull request #1 from event-engine/feature/load-until
Add support to load aggregates events until version
2 parents f198ba7 + 2359786 commit b76761c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/EventStore.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,16 @@ public function appendTo(string $streamName, GenericEvent ...$events): void;
2626
* @param string $aggregateType
2727
* @param string $aggregateId
2828
* @param int $minVersion
29+
* @param int|null $maxVersion
2930
* @return \Iterator GenericEvent[]
3031
*/
31-
public function loadAggregateEvents(string $streamName, string $aggregateType, string $aggregateId, int $minVersion = 1): \Iterator;
32+
public function loadAggregateEvents(
33+
string $streamName,
34+
string $aggregateType,
35+
string $aggregateId,
36+
int $minVersion = 1,
37+
int $maxVersion = null
38+
): \Iterator;
3239

3340
/**
3441
* @param string $streamName

0 commit comments

Comments
 (0)