Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class SnapshotConfiguration |
||
10 | { |
||
11 | /** |
||
12 | * The number of events between each snapshot |
||
13 | * |
||
14 | * @var int $steps |
||
15 | */ |
||
16 | private $steps; |
||
17 | |||
18 | /** |
||
19 | * The snapshot class to instantiante when storing the snapshot objects |
||
20 | * |
||
21 | * @var string $snapshotClass |
||
22 | */ |
||
23 | private $snapshotClass; |
||
24 | |||
25 | /** |
||
26 | * @throws Exception |
||
27 | */ |
||
28 | public function __construct(int $steps, string $snapshotClass) |
||
35 | } |
||
36 | |||
37 | public function getSteps() : int |
||
40 | } |
||
41 | |||
42 | public function getSnapshotClass() : string |
||
47 |