Completed
Push — master ( a081fe...17409b )
by Alexei
8s
created

Info   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 36
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
// Copyright 1999-2016. Parallels IP Holdings GmbH.
3
4
namespace PleskX\Api\Struct\Dns;
5
6
class Info extends \PleskX\Api\Struct
7
{
8
    /** @var integer */
9
    public $id;
10
11
    /** @var integer */
12
    public $siteId;
13
14
    /** @var integer */
15
    public $siteAliasId;
16
17
    /** @var string */
18
    public $type;
19
20
    /** @var string */
21
    public $host;
22
23
    /** @var string */
24
    public $value;
25
26
    /** @var string */
27
    public $opt;
28
29
    public function __construct($apiResponse)
30
    {
31
        $this->_initScalarProperties($apiResponse, [
32
            'id',
33
            'site-id',
34
            'site-alias-id',
35
            'type',
36
            'host',
37
            'value',
38
            'opt',
39
        ]);
40
    }
41
}
42