Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public static function tryingToMapItem( |
||
17 | MapsProperty $mapping, |
||
18 | Throwable $exception |
||
19 | ) : self |
||
20 | { |
||
21 | return new self( |
||
22 | sprintf( |
||
23 | 'Failed to map the %s relation of the `%s` property: %s', |
||
24 | (new ReflectionClass($mapping))->getShortName(), |
||
25 | $mapping->name(), |
||
26 | $exception->getMessage() |
||
27 | ), |
||
28 | 0, |
||
29 | $exception |
||
30 | ); |
||
33 |