Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function __construct() |
||
15 | { |
||
16 | $this->snapshotModel = config('event-sourcing.snapshot_model', EloquentSnapshot::class); |
||
17 | |||
18 | if (! new $this->snapshotModel instanceof EloquentSnapshot) { |
||
19 | throw new InvalidEloquentSnapshotModel("The class {$this->snapshotModel} must extend EloquentSnapshot"); |
||
20 | } |
||
21 | } |
||
22 | |||
49 |