Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class ExceptionMiddleware implements Middleware |
||
17 | { |
||
18 | /** |
||
19 | * @var ExceptionHandler |
||
20 | */ |
||
21 | protected $exceptionHandler; |
||
22 | |||
23 | /** |
||
24 | * ExceptionMiddleware constructor. |
||
25 | */ |
||
26 | 20 | public function __construct() |
|
29 | 20 | } |
|
30 | |||
31 | /** |
||
32 | * @param object $command |
||
33 | * @param callable $next |
||
34 | * |
||
35 | * @return mixed |
||
36 | * @throws ExceptionInterface |
||
37 | */ |
||
38 | 18 | public function execute($command, callable $next) |
|
53 |