| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function registerSnapshot(SnapshotInterface $snapshot) |
||
| 38 | { |
||
| 39 | /** @var IncidentRecord $incident */ |
||
| 40 | $incident = $this->source->createFromSnapshot($snapshot); |
||
| 41 | |||
| 42 | /** @var SnapshotRecord $snapshotRecord */ |
||
| 43 | $snapshotRecord = $this->service->getByHash($this->service->makeHash($snapshot)); |
||
| 44 | $snapshotRecord->pushIncident($incident); |
||
| 45 | $snapshotRecord->save(); |
||
| 46 | } |
||
| 47 | } |