| 1 | <?php |
||
| 10 | class SnapshotSource extends RecordSource |
||
| 11 | { |
||
| 12 | const RECORD = SnapshotRecord::class; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $hash |
||
| 16 | * @return null|SnapshotRecord |
||
| 17 | */ |
||
| 18 | public function findByHash(string $hash) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return RecordSelector |
||
| 25 | */ |
||
| 26 | public function findWithLast(): RecordSelector |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return null|SnapshotRecord |
||
| 33 | */ |
||
| 34 | public function findLast() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Snapshot with last incident (should not be archived in the history). |
||
| 43 | * |
||
| 44 | * @param string|int $id |
||
| 45 | * @param array $load |
||
| 46 | * @return null|SnapshotRecord |
||
| 47 | */ |
||
| 48 | public function findWithLastByPK($id, array $load = []) |
||
| 58 | } |