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