| Total Complexity | 8 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class NotificationXmlConverter implements NotificationXmlConverterInterface |
||
| 14 | { |
||
| 15 | protected const TRANSACTION_ELEMENT = 'Transaction'; |
||
| 16 | protected const EXCEPTION_MESSAGE_TRANSACTION_NODE_MISSING = 'Notification body has invalid body. Transaction node is missing.'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $xml |
||
| 20 | * |
||
| 21 | * @return string[][] |
||
| 22 | */ |
||
| 23 | public function convert(string $xml): array |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $xml |
||
| 32 | * |
||
| 33 | * @throws \SprykerEco\Zed\Heidelpay\Business\Exception\TransactionNodeMissingException |
||
| 34 | * |
||
| 35 | * @return \SimpleXMLElement |
||
| 36 | */ |
||
| 37 | protected function loadXml(string $xml): SimpleXMLElement |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param \SimpleXMLElement $xmlElement |
||
| 49 | * |
||
| 50 | * @return string[][] |
||
| 51 | */ |
||
| 52 | protected function simpleXmlToArray(SimpleXMLElement $xmlElement): array |
||
| 69 |