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