| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 3 | public function getData(): array |
|
| 18 | { |
||
| 19 | 3 | $data = parent::getData(); |
|
| 20 | |||
| 21 | 3 | $data['ContractProfileId'] = $this->getContractProfileId(); |
|
| 22 | 3 | $data['AmountInCents'] = $this->getAmountInteger(); |
|
| 23 | 3 | $data['CurrencyCode'] = $this->getCurrencyCode(); |
|
| 24 | 3 | $data['Reference'] = $this->getReference(); // This isn't the payment reference but needs to be unique among refunds. |
|
| 25 | 3 | $data['Timestamp'] = $this->getTimestamp()->format(self::TIMESTAMP_FORMAT); |
|
| 26 | |||
| 27 | 3 | return $data; |
|
| 28 | } |
||
| 56 |