Completed
Push — master ( 7671cb...b4a464 )
by Alexei
01:55
created

Info::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
// Copyright 1999-2016. Parallels IP Holdings GmbH.
3
4
namespace PleskX\Api\Struct\DatabaseServer;
5
6
class Info extends \PleskX\Api\Struct
7
{
8
    /** @var integer */
9
    public $id;
10
11
    /** @var string */
12
    public $host;
13
14
    /** @var integer */
15
    public $port;
16
17
    /** @var string */
18
    public $type;
19
20
    public function __construct($apiResponse)
21
    {
22
        $this->_initScalarProperties($apiResponse, [
23
            'id',
24
            'host',
25
            'port',
26
            'type',
27
        ]);
28
    }
29
}