| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 60 | public static function createFromSaleResponse(ResponseInterface $response): Sid |
||
| 61 | { |
||
| 62 | $content = $response->getBody()->getContents(); |
||
| 63 | $result = json_decode($content); |
||
| 64 | |||
| 65 | if (JSON_ERROR_NONE == json_last_error()) { |
||
| 66 | throw SkrillResponseException::fromSkillError($result->message); |
||
| 67 | } |
||
| 68 | |||
| 69 | return self::createFromString($content); |
||
| 70 | } |
||
| 72 |