Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
21 | 2 | public function transform(Chargeback $chargeback) |
|
22 | { |
||
23 | 2 | return array_filter([ |
|
24 | 2 | '$order_id' => $chargeback->getOrder(), |
|
25 | 2 | '$transaction_id' => $chargeback->getTransaction(), |
|
26 | 2 | '$chargeback_state' => $chargeback->getChargebackState(), |
|
27 | 2 | '$chargeback_reason' => $chargeback->getChargebackReason() |
|
28 | ]); |
||
29 | } |
||
30 | } |
||
31 |