Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 2 | public function transform(Chargeback $event) |
|
25 | { |
||
26 | $data = [ |
||
27 | 2 | '$type' => $event->getType(), |
|
28 | 2 | '$api_key' => $event->getApiKey(), |
|
29 | 2 | '$user_id' => $event->getUserId(), |
|
30 | 2 | '$ip' => $event->getIp(), |
|
31 | 2 | '$time' => $this->dateTime($event->getTime()), |
|
32 | 2 | '$order_id' => $event->getOrder(), |
|
33 | 2 | '$transaction_id' => $event->getTransaction(), |
|
34 | 2 | '$chargeback_state' => $event->getChargebackState(), |
|
35 | 2 | '$chargeback_reason' => $event->getChargebackReason() |
|
36 | ]; |
||
37 | |||
38 | 2 | return $this->result($event, $data); |
|
39 | } |
||
40 | } |
||
41 |