| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function buildData() |
||
| 18 | { |
||
| 19 | $return = [ |
||
| 20 | '@method' => $this->requestTransfer->getPayment()->getMethod(), |
||
| 21 | '@currency' => $this->requestTransfer->getPayment()->getCurrency(), |
||
| 22 | 'amount' => $this->requestTransfer->getPayment()->getAmount(), |
||
| 23 | 'debit-pay-type' => $this->requestTransfer->getPayment()->getDebitPayType(), |
||
| 24 | ]; |
||
| 25 | |||
| 26 | if ($this->requestTransfer->getInstallmentPayment()) { |
||
| 27 | $return['amount'] = $this->requestTransfer->getInstallmentPayment()->getAmount(); |
||
| 28 | $return['debit-pay-type'] = $this->requestTransfer->getInstallmentPayment()->getDebitPayType(); |
||
| 29 | $return['installment-details'] = (new InstallmentDetail($this->requestTransfer)); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $return; |
||
| 33 | } |
||
| 43 |