Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | final class PsrHttpClientHandlerFactory |
||
26 | { |
||
27 | /** |
||
28 | * @param ContainerInterface $container |
||
29 | * |
||
30 | * @return PsrHttpClientHandler |
||
31 | */ |
||
32 | 2 | public function __invoke(ContainerInterface $container): PsrHttpClientHandler |
|
33 | { |
||
34 | 2 | $client = $container->get(ClientInterface::class); |
|
35 | |||
36 | 2 | return $this->fromPsrClient($client); |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param ClientInterface $client |
||
41 | * |
||
42 | * @return PsrHttpClientHandler |
||
43 | */ |
||
44 | 1 | public function fromPsrClient(ClientInterface $client): PsrHttpClientHandler |
|
47 | } |
||
48 | } |
||
49 |