| Conditions | 5 |
| Paths | 5 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function execute(Observer $observer) |
||
| 46 | { |
||
| 47 | $data = $this->readDataArgument($observer); |
||
| 48 | |||
| 49 | $additionalData = $data->getData(PaymentInterface::KEY_ADDITIONAL_DATA); |
||
| 50 | |||
| 51 | if (!is_array($additionalData)) { |
||
| 52 | return; |
||
| 53 | } |
||
| 54 | |||
| 55 | $paymentInfo = $this->readPaymentModelArgument($observer); |
||
| 56 | |||
| 57 | foreach ($this->addInformationList as $addInformationKey) { |
||
| 58 | if (isset($additionalData[$addInformationKey])) { |
||
| 59 | if ($additionalData[$addInformationKey]) { |
||
| 60 | $paymentInfo->setAdditionalInformation( |
||
| 61 | $addInformationKey, |
||
| 62 | $additionalData[$addInformationKey] |
||
| 63 | ); |
||
| 69 |