| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function __construct(array $map, string $method = "__invoke") |
||
| 16 | { |
||
| 17 | $mapped = []; |
||
| 18 | foreach ($map as $message => $class) { |
||
| 19 | if (method_exists($class, $method)) { |
||
| 20 | $mapped[] = new ClassMethod($message, $class, $method); |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | parent::__construct(...$mapped); |
||
| 25 | } |
||
| 27 |