1 | <?php |
||
9 | class SagaRepository |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var SagaPersistence |
||
14 | */ |
||
15 | private $sagaPersistence; |
||
16 | |||
17 | 5 | public function __construct( |
|
23 | |||
24 | 3 | public function isEventAlreadyDispatched(string $sagaId, int $sequence, int $index): bool |
|
37 | |||
38 | 1 | public function persistLastProcessedEventBySaga(string $sagaId, int $sequence, int $index) |
|
45 | |||
46 | 1 | public function getLastPersistedEventSequenceAndIndex(string $sagaId) |
|
52 | } |