| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 1 | private function registerTypes(array $types, ContainerBuilder $container): self |
|
| 36 | { |
||
| 37 | 1 | $definition = $container->getDefinition( |
|
| 38 | 1 | 'innmind_rest_client.definition.types' |
|
| 39 | ); |
||
| 40 | |||
| 41 | 1 | foreach ($types as $type) { |
|
| 42 | 1 | $definition->addMethodCall( |
|
| 43 | 1 | 'register', |
|
| 44 | 1 | [$type] |
|
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | 1 | return $this; |
|
| 49 | } |
||
| 50 | |||
| 62 |