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