| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function __invoke(ContainerInterface $container): Collection |
||
| 20 | { |
||
| 21 | $clients = []; |
||
| 22 | foreach ($this->clients as $name => $client) { |
||
| 23 | if (!is_string($name)) { |
||
| 24 | throw new \InvalidArgumentException('Client name must be set.'); |
||
| 25 | } |
||
| 26 | $clients[$name] = $container->get($client); |
||
| 27 | } |
||
| 28 | return new Collection($clients); |
||
| 29 | } |
||
| 31 |