Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public static function inTheInput( |
||
29 | array $data, |
||
30 | Mapping $mapping, |
||
31 | string $key |
||
32 | ): MappingFailure { |
||
33 | return new self(sprintf( |
||
34 | 'Missing the key `%s` for property `%s` in the input data: %s; ' . |
||
35 | 'Mapper: %s', |
||
36 | $key, |
||
37 | $mapping->name(), |
||
38 | json_encode($data), |
||
39 | get_class($mapping) |
||
40 | )); |
||
43 |