Completed
Push — master ( 2a0510...77d67e )
by Gilmar
02:40
created

CancelOrRefundDecorator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of gpupo/adyen-sdk
5
 *
6
 * (c) Gilmar Pupo <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * For more information, see
12
 * <http://www.g1mr.com/adyen-sdk/>.
13
 */
14
15
namespace Gpupo\AdyenSdk\Payment\Request\Decorator;
16
17
class CancelOrRefundDecorator extends AbstractDecorator
18
{
19
    public function toArray()
20
    {
21
        return [
22
            'merchantAccount'   => $this->getRequest()->getMerchantAccount(),
23
            'originalReference' => $this->getOrder()->get('pspReference'),
24
        ];
25
    }
26
}
27