| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 9 | final class JsonTransformationFailure extends RuntimeException implements MappingFailure |
||
| 10 | { |
||
| 11 | public static function detected( |
||
| 12 | string $error, |
||
| 13 | string $key, |
||
| 14 | string $name |
||
| 15 | ): MappingFailure { |
||
| 16 | return new self(sprintf( |
||
| 17 | 'Error in transforming the json from key `%s` for in the property `%s`: %s', |
||
| 18 | $key, |
||
| 19 | $name, |
||
| 20 | $error |
||
| 21 | )); |
||
| 22 | } |
||
| 23 | |||
| 24 | public static function cannotBeScalar( |
||
| 35 | )); |
||
| 36 | } |
||
| 38 |