| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public static function expectedThe( |
||
| 15 | string $interface, |
||
| 16 | $object, |
||
| 17 | $actual, |
||
| 18 | string $property |
||
| 19 | ) : UnmappableInput |
||
| 20 | { |
||
| 21 | return new static(sprintf( |
||
| 22 | 'Could not assign the value for `%s::%s`, got an `%s` instead of `%s`', |
||
| 23 | get_class($object), |
||
| 24 | $property, |
||
| 25 | is_object($actual) ? get_class($actual) : gettype($actual), |
||
| 26 | $interface |
||
| 27 | )); |
||
| 30 |