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