| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 6 | public function getData() |
|
| 16 | { |
||
| 17 | 6 | $this->validate( |
|
| 18 | 6 | 'transactionReference', |
|
| 19 | 6 | 'originalOrderNumber', |
|
| 20 | 6 | 'amount', |
|
| 21 | 6 | 'paymentMethod', |
|
| 22 | 6 | 'currency' |
|
| 23 | ); |
||
| 24 | |||
| 25 | 6 | $data = $this->getBaseData(); |
|
| 26 | 6 | $data['transType'] = 'REFD'; |
|
| 27 | 6 | $data['orderNum'] = $this->getTransactionReference(); |
|
| 28 | 6 | $data['origOrderNum'] = $this->getOriginalOrderNumber(); |
|
| 29 | 6 | $data['returnAmount'] = $this->getAmount(); |
|
| 30 | 6 | $data['paymentSchema'] = $this->getPaymentMethod(); |
|
| 31 | 6 | $data['orderCurrency'] = $this->getCurrency(); |
|
| 32 | |||
| 33 | 6 | return $data; |
|
| 34 | } |
||
| 35 | |||
| 51 |