| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 24 | class CallableRequestHandler implements RequestHandlerInterface |
||
| 25 | { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The request handler callback |
||
| 29 | * |
||
| 30 | * @var callable |
||
| 31 | */ |
||
| 32 | private $callback; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Constructor of the class |
||
| 36 | * |
||
| 37 | * @param callable $callback |
||
| 38 | */ |
||
| 39 | 2 | public function __construct(callable $callback) |
|
| 42 | 2 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritDoc} |
||
| 46 | */ |
||
| 47 | 1 | public function handle(ServerRequestInterface $request) : ResponseInterface |
|
| 52 |