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