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 | /** @var ResponseInterface $response */ |
11 | public $response; |
12 | |
13 | public function __construct(ResponseInterface $response) { |
14 | $this->response = $response; |
15 | } |
16 | |
17 | public function handle(ServerRequestInterface $request): ResponseInterface { |
18 | return $this->response; |
19 | } |
20 | } |