RejectActions::rejectTransaction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 6
rs 10
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
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