BaseIgfsCgMpi   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 62.5%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 29
ccs 5
cts 8
cp 0.625
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A parseResponseMap() 0 5 1
A getServicePort() 0 3 1
A resetFields() 0 4 1
1
<?php
2
3
namespace PagOnline\Mpi;
4
5
use PagOnline\BaseIgfsCg;
6
use PagOnline\IgfsUtils;
7
8
abstract class BaseIgfsCgMpi extends BaseIgfsCg
9
{
10
    /**
11
     * @var mixed
12
     */
13
    public $xid;
14
15 2
    public function resetFields()
16
    {
17 2
        parent::resetFields();
18 2
        $this->xid = null;
19
    }
20
21
    /**
22
     * @return string
23
     */
24 4
    protected function getServicePort()
25
    {
26 4
        return 'MPIGatewayPort';
27
    }
28
29
    /**
30
     * @param array $response
31
     */
32
    protected function parseResponseMap($response)
33
    {
34
        parent::parseResponseMap($response);
35
        // Opzionale
36
        $this->xid = IgfsUtils::getValue($response, 'xid');
37
    }
38
}
39