| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | final class CallbackHandler implements RequestHandlerInterface |
||
| 25 | { |
||
| 26 | /** @var callable */ |
||
| 27 | private $callback; |
||
| 28 | |||
| 29 | public function __construct(callable $callback) |
||
| 30 | { |
||
| 31 | $this->callback = $callback; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
| 40 | } |
||
| 41 | } |
||
| 42 |