Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | final class PsrHttpClientHandler implements ClientInterface, RequestHandlerInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var ClientInterface |
||
31 | */ |
||
32 | private $client; |
||
33 | |||
34 | /** |
||
35 | * PsrHttpClientHandler constructor. |
||
36 | * |
||
37 | * @param ClientInterface $client |
||
38 | */ |
||
39 | 4 | public function __construct(ClientInterface $client) |
|
42 | 4 | } |
|
43 | |||
44 | /** |
||
45 | * @param RequestInterface $request |
||
46 | * |
||
47 | * @throws \Psr\Http\Client\ClientExceptionInterface |
||
48 | * |
||
49 | * @return ResponseInterface |
||
50 | */ |
||
51 | 2 | public function sendRequest(RequestInterface $request): ResponseInterface |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param ServerRequestInterface $request |
||
58 | * |
||
59 | * @throws \Psr\Http\Client\ClientExceptionInterface |
||
60 | * |
||
61 | * @return ResponseInterface |
||
62 | */ |
||
63 | 1 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
68 |