AllpayLogisticsGatewayFactory::populateConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
ccs 5
cts 5
cp 1
cc 1
nc 1
nop 1
crap 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