| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class InputStringIsInvalid extends InvalidArgument implements InvalidJson |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Produces an `Invalid Json` type exception, to throw when decoding the |
||
| 17 | * input caused an error. |
||
| 18 | * |
||
| 19 | * @param string $error The error message that was detected. |
||
| 20 | * @param string $invalidJson The (invalid) json input that was provided. |
||
| 21 | * @return InvalidJson The Json context-specific exception to throw. |
||
| 22 | */ |
||
| 23 | public static function detected( |
||
| 34 |