| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | 13 | public function __construct(HttpResponseInterface $response) |
|
| 11 | { |
||
| 12 | 13 | parent::__construct($response); |
|
| 13 | 13 | $content = $this->response->getBody()->getContents(); |
|
| 14 | // The Authorize.net API does not return an absolute URL for XMLNS. |
||
| 15 | 13 | $xml = @new \SimpleXMLElement($content); |
|
| 16 | 13 | $json = json_encode((array) $xml); |
|
| 17 | 13 | $this->contents = json_decode($json); |
|
| 18 | 13 | } |
|
| 20 |