Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
11 | class SnapshotRepository implements EventSauceSnapshotRepository |
||
12 | { |
||
13 | /** @var Connection */ |
||
14 | protected $connection; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $table; |
||
18 | |||
19 | public function __construct(Connection $connection, string $table) |
||
24 | } |
||
25 | |||
26 | public function persist(Snapshot $snapshot): void |
||
35 | ]); |
||
36 | } |
||
37 | |||
38 | public function retrieve(AggregateRootId $id): ?Snapshot |
||
56 |