| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 263 | private function resolve(string $name): TracerFactoryInterface |
|
| 34 | { |
||
| 35 | 263 | $config = $this->config->getDriverConfig($name); |
|
| 36 | |||
| 37 | 262 | if ($config instanceof TracerFactoryInterface) { |
|
| 38 | return $config; |
||
| 39 | } |
||
| 40 | |||
| 41 | 262 | if ($config instanceof Autowire) { |
|
| 42 | return $config->resolve($this->factory); |
||
| 43 | } |
||
| 44 | |||
| 45 | 262 | return $this->factory->make($config); |
|
| 46 | } |
||
| 48 |