| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 21 | public function retrieve(string $aggregateUuid): ?Snapshot  | 
            ||
| 22 |     { | 
            ||
| 23 | /** @var \Illuminate\Database\Query\Builder $query */  | 
            ||
| 24 | $query = $this->snapshotModel::query();  | 
            ||
| 25 | |||
| 26 |         if ($snapshot = $query->latest()->uuid($aggregateUuid)->first()) { | 
            ||
| 27 | return $snapshot->toSnapshot();  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | return null;  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 47 |