RejectActions   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A rejectTransaction() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MerchantSafeUnipay\SDK\Action;
5
6
use MerchantSafeUnipay;
7
8
final class RejectActions extends ActionAbstract implements ActionInterface
9
{
10
    static private $rejectTransactionKeys = [
11
        'MERCHANTPAYMENTID'
12
    ];
13
14
    public function rejectTransaction($args)
15
    {
16
        $this->action = 'REJECTTRANSACTION';
17
        $args = MerchantSafeUnipay\filter(self::$rejectTransactionKeys, $args);
18
        $this->queryParameters = array_merge($this->merchantParams, $args);
19
    }
20
}
21