Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class Snapshot |
||
10 | { |
||
11 | public function __construct( |
||
12 | private AggregateRootId $aggregateRootId, |
||
13 | private int $aggregateRootVersion, |
||
14 | private mixed $state |
||
15 | ) { |
||
16 | } |
||
17 | |||
18 | public function aggregateRootId(): AggregateRootId |
||
21 | } |
||
22 | |||
23 | public function aggregateRootVersion(): int |
||
24 | { |
||
25 | return $this->aggregateRootVersion; |
||
26 | } |
||
27 | |||
28 | public function state(): mixed |
||
31 | } |
||
32 | } |
||
33 |