| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public static function didNotFind( |
||
| 19 | string $missingKey, |
||
| 20 | Json $data, |
||
| 21 | string ...$path |
||
| 22 | ): self { |
||
| 23 | return new self(sprintf( |
||
| 24 | 'Could not find the value for `%s` in the json data `%s`: ' . |
||
| 25 | 'the key `%s` does not exist.', |
||
| 26 | implode(' -> ', $path), |
||
| 27 | $data, |
||
| 28 | $missingKey |
||
| 29 | )); |
||
| 32 |