AllpayLogisticsGatewayFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A populateConfig() 0 8 1
1
<?php
2
3
namespace PayumTW\Allpay;
4
5
use Payum\Core\Bridge\Spl\ArrayObject;
6
use PayumTW\Ecpay\EcpayLogisticsGatewayFactory;
7
8
class AllpayLogisticsGatewayFactory extends EcpayLogisticsGatewayFactory
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13 1
    protected function populateConfig(ArrayObject $config)
14
    {
15 1
        parent::populateConfig($config);
16 1
        $config->replace([
17 1
            'payum.factory_name' => 'allpay_logistics',
18
            'payum.factory_title' => 'Allpay Logistics',
19
        ]);
20 1
    }
21
}
22