|
@@ 757-763 (lines=7) @@
|
| 754 |
|
|
| 755 |
|
$logs = []; |
| 756 |
|
/** @var \Orm\Zed\Payone\Persistence\SpyPaymentPayoneApiLog $apiLog */ |
| 757 |
|
foreach ($apiLogs as $apiLog) { |
| 758 |
|
$key = $apiLog->getCreatedAt()->format('Y-m-d\TH:i:s\Z') . 'a' . $apiLog->getIdPaymentPayoneApiLog(); |
| 759 |
|
$payonePaymentLogTransfer = new PayonePaymentLogTransfer(); |
| 760 |
|
$payonePaymentLogTransfer->fromArray($apiLog->toArray(), true); |
| 761 |
|
$payonePaymentLogTransfer->setLogType(self::LOG_TYPE_API_LOG); |
| 762 |
|
$logs[$key] = $payonePaymentLogTransfer; |
| 763 |
|
} |
| 764 |
|
/** @var \Orm\Zed\Payone\Persistence\SpyPaymentPayoneTransactionStatusLog $transactionStatusLog */ |
| 765 |
|
foreach ($transactionStatusLogs as $transactionStatusLog) { |
| 766 |
|
$key = $transactionStatusLog->getCreatedAt()->format('Y-m-d\TH:i:s\Z') . 't' . $transactionStatusLog->getIdPaymentPayoneTransactionStatusLog(); |
|
@@ 765-771 (lines=7) @@
|
| 762 |
|
$logs[$key] = $payonePaymentLogTransfer; |
| 763 |
|
} |
| 764 |
|
/** @var \Orm\Zed\Payone\Persistence\SpyPaymentPayoneTransactionStatusLog $transactionStatusLog */ |
| 765 |
|
foreach ($transactionStatusLogs as $transactionStatusLog) { |
| 766 |
|
$key = $transactionStatusLog->getCreatedAt()->format('Y-m-d\TH:i:s\Z') . 't' . $transactionStatusLog->getIdPaymentPayoneTransactionStatusLog(); |
| 767 |
|
$payonePaymentLogTransfer = new PayonePaymentLogTransfer(); |
| 768 |
|
$payonePaymentLogTransfer->fromArray($transactionStatusLog->toArray(), true); |
| 769 |
|
$payonePaymentLogTransfer->setLogType(self::LOG_TYPE_TRANSACTION_STATUS_LOG); |
| 770 |
|
$logs[$key] = $payonePaymentLogTransfer; |
| 771 |
|
} |
| 772 |
|
|
| 773 |
|
ksort($logs); |
| 774 |
|
|