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