Completed
Push — master ( b4a464...107c9c )
by Alexei
01:52
created

Info   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
// Copyright 1999-2016. Parallels IP Holdings GmbH.
3
4
namespace PleskX\Api\Struct\ServicePlan;
5
6
class Info extends \PleskX\Api\Struct
7
{
8
    /** @var integer */
9
    public $id;
10
11
    /** @var string */
12
    public $name;
13
14
    /** @var string */
15
    public $guid;
16
17
    /** @var string */
18
    public $externalId;
19
20
    public function __construct($apiResponse)
21
    {
22
        $this->_initScalarProperties($apiResponse, [
23
            'id',
24
            'name',
25
            'guid',
26
            'external-id',
27
        ]);
28
    }
29
}