| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 19 | public static function triedToAssign($handler): InvalidBusConfiguration |
||
| 20 | { |
||
| 21 | return new self( |
||
| 22 | is_object($handler) |
||
| 23 | ? sprintf( |
||
| 24 | 'The requested command handler `%s` does not implement `%s`.', |
||
| 25 | get_class($handler), |
||
| 26 | Handler::class |
||
| 27 | ) |
||
| 28 | : sprintf( |
||
| 29 | 'Cannot assign a primitive %s as command handler.', |
||
| 30 | gettype($handler) |
||
| 31 | ) |
||
| 35 |