| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class Callback implements MiddlewareInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var callable a PHP callback matching signature of [[MiddlewareInterface::process()]]. |
||
| 16 | */ |
||
| 17 | private $callback; |
||
| 18 | private ContainerInterface $container; |
||
| 19 | |||
| 20 | public function __construct(callable $callback, ContainerInterface $container) |
||
| 21 | { |
||
| 22 | $this->callback = $callback; |
||
| 23 | $this->container = $container; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 29 | } |
||
| 30 | } |
||
| 31 |