| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 20 | public function get(TypeToken $type): CallAdapter |
|
| 48 | { |
||
| 49 | 20 | foreach ($this->callAdapterFactories as $callAdapterFactory) { |
|
| 50 | 20 | if ($callAdapterFactory->supports($type)) { |
|
| 51 | 20 | return $callAdapterFactory->create($type); |
|
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 55 | 1 | throw new LogicException(sprintf('Retrofit: Could not get call adapter for type %s', $type)); |
|
| 56 | } |
||
| 57 | } |
||
| 58 |