Test Failed
Push — master ( 5a72fc...745ae1 )
by Mehmet
03:27
created

RecurringPayment   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A edit() 0 9 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MerchantSafeUnipay\SDK\Action;
5
6
use MerchantSafeUnipay;
7
8
class RecurringPayment extends ActionAbstract implements ActionInterface
9
{
10
    public function edit($args)
11
    {
12
        $this->action = 'RECURRINGPAYMENTEDIT';
13
        $queryParamKeys = [
14
            'RECURRINGPLANCODE', 'RECURRENCE', 'AMOUNT', 'RECURRINGPAYMENTSTATUS'
15
        ];
16
        $args = MerchantSafeUnipay\filter($queryParamKeys, $args);
17
        $this->queryParameters = $args;
18
    }
19
}
20