1 | <?php |
||
23 | final class RequestHandler implements RequestHandlerInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var callable |
||
27 | */ |
||
28 | private $callback; |
||
29 | |||
30 | /** |
||
31 | * @param callable $callback function (\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\ResponseInterface |
||
32 | */ |
||
33 | public function __construct(callable $callback) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
45 | } |
||
46 |