Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
3 / 3 |
ResponseRequestHandler | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
3 / 3 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
handle | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
1 | <?php declare(strict_types=1); |
2 | |
3 | namespace Taproot\IndieAuth\Middleware; |
4 | |
5 | use Psr\Http\Message\ServerRequestInterface; |
6 | use Psr\Http\Message\ResponseInterface; |
7 | use Psr\Http\Server\RequestHandlerInterface; |
8 | |
9 | class ResponseRequestHandler implements RequestHandlerInterface { |
10 | public ResponseInterface $response; |
11 | |
12 | public function __construct(ResponseInterface $response) { |
13 | $this->response = $response; |
14 | } |
15 | |
16 | public function handle(ServerRequestInterface $request): ResponseInterface { |
17 | return $this->response; |
18 | } |
19 | } |