Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | final class HttpPlugHandler implements RequestHandlerInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var HttpClient |
||
30 | */ |
||
31 | private $client; |
||
32 | |||
33 | /** |
||
34 | * HttpPlugHandler constructor. |
||
35 | * |
||
36 | * @param HttpClient $client |
||
37 | */ |
||
38 | 3 | public function __construct(HttpClient $client) |
|
39 | { |
||
40 | 3 | $this->client = $client; |
|
41 | 3 | } |
|
42 | |||
43 | /** |
||
44 | * @param ServerRequestInterface $request |
||
45 | * |
||
46 | * @throws \Http\Client\Exception |
||
47 | * |
||
48 | * @return ResponseInterface |
||
49 | */ |
||
50 | 1 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
53 | } |
||
54 | } |
||
55 |