| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 6 | public function getData() |
|
| 37 | { |
||
| 38 | 6 | $this->validate('chargeId', 'amount', 'reason'); |
|
| 39 | |||
| 40 | 6 | $data = $this->getBaseData(); |
|
| 41 | |||
| 42 | 6 | $data['charge_id'] = $this->getChargeId(); |
|
| 43 | 6 | $data['amount'] = $this->getAmount(); |
|
| 44 | 6 | $data['reason'] = $this->getReason(); |
|
| 45 | |||
| 46 | 6 | return $data; |
|
| 47 | } |
||
| 48 | |||
| 54 |