| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public static function convert(ResponseInterface $response): array |
||
| 20 | { |
||
| 21 | $type = $response->getHeaderLine('Content-Type'); |
||
| 22 | |||
| 23 | switch (mb_strtolower($type)) { |
||
| 24 | case 'text/xml': |
||
| 25 | return ConverterXML::convert($response); |
||
| 26 | default: |
||
| 27 | throw new DomainException('Type "' . $type . '" not implemented.'); |
||
| 28 | } |
||
| 31 |