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