Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class InMemorySnapshotPersister implements SnapshotPersisterInterface |
||
12 | { |
||
13 | /** @var Snapshot[] $snapshots */ |
||
14 | private $snapshots = []; |
||
15 | |||
16 | public function snapshot(SnapshotInterface $snapshot) : void |
||
17 | { |
||
18 | $this->snapshots[$snapshot->getStreamName()] = $snapshot; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @param mixed $aggregateId |
||
23 | */ |
||
24 | public function get(string $streamName) : ?SnapshotInterface |
||
27 | } |
||
28 | } |
||
29 |