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