| 1 | <?php |
||
| 23 | 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 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
| 42 | } |
||
| 43 |