Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class CommandHandlerMiddleware implements Middleware |
||
19 | { |
||
20 | private ContainerInterface $container; |
||
21 | private CommandToHandlerMapping $mapping; |
||
22 | |||
23 | 1 | public function __construct(ContainerInterface $container, CommandToHandlerMapping $mapping) |
|
27 | 1 | } |
|
28 | |||
29 | /** |
||
30 | * Executes a command and optionally returns a value |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | 1 | public function execute(object $command, callable $next) |
|
48 |