| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class AfterMiddleware |
||
| 14 | { |
||
| 15 | private MiddlewareInterface $middleware; |
||
| 16 | private ?ResponseInterface $response; |
||
| 17 | |||
| 18 | 4 | public function __construct(MiddlewareInterface $middleware, ?ResponseInterface $response) |
|
| 22 | 4 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return MiddlewareInterface middleware that was executed |
||
| 26 | */ |
||
| 27 | 1 | public function getMiddleware(): MiddlewareInterface |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return ResponseInterface|null response generated by middleware or null in case there was an error |
||
| 34 | */ |
||
| 35 | 2 | public function getResponse(): ?ResponseInterface |
|
| 40 |