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

RecurringPayment::edit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 1
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
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