Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class MiddlewareWrapper implements Middleware |
||
13 | { |
||
14 | protected Closure $callable; |
||
15 | |||
16 | /** @psalm-param callable(Request, callable):Response $callable */ |
||
17 | 4 | public function __construct(callable $callable) |
|
18 | { |
||
19 | 4 | $this->callable = Closure::fromCallable($callable); |
|
20 | } |
||
21 | |||
22 | 4 | public function __invoke( |
|
28 | } |
||
29 | } |
||
30 |