| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | final class Callback implements MiddlewareInterface |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * @var callable a PHP callback matching signature of [[MiddlewareInterface::process()]]. |
||
| 31 | */ |
||
| 32 | private $callback; |
||
| 33 | private $container; |
||
| 34 | |||
| 35 | 4 | public function __construct(callable $callback, ContainerInterface $container) |
|
| 36 | { |
||
| 37 | 4 | $this->callback = $callback; |
|
| 38 | 4 | $this->container = $container; |
|
| 39 | } |
||
| 40 | |||
| 41 | 4 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 44 | } |
||
| 45 | } |
||
| 46 |