Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class HandlerProviderWithHandlers implements HandlerProvider |
||
18 | { |
||
19 | /** |
||
20 | * @param array<class-string, callable> $handlers |
||
|
|||
21 | * Where _key_ is a message class and _value_ a handler for that message class. |
||
22 | */ |
||
23 | public function __construct( |
||
26 | } |
||
27 | |||
28 | public function getHandlerForMessage(object $message): ?callable |
||
33 |