| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public static function createFromXMLResponse(ResponseInterface $response): Sid |
||
| 42 | { |
||
| 43 | $xml = new SimpleXMLElement($response->getBody()->getContents()); |
||
| 44 | |||
| 45 | if ($xml->xpath('error/error_msg')) { |
||
| 46 | throw SkrillResponseException::fromSkillError((strval($xml->error->error_msg))); |
||
| 47 | } |
||
| 48 | |||
| 49 | return self::createFromString(strval($xml->sid)); |
||
| 50 | } |
||
| 72 |