Completed
Pull Request — master (#13)
by
unknown
02:02
created

Info   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
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 32
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
// Copyright 1999-2016. Parallels IP Holdings GmbH.
3
4
namespace PleskX\Api\Struct\Database;
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 $type;
16
17
    /** @var integer */
18
    public $webspaceId;
19
20
    /** @var integer */
21
    public $dbServerId;
22
23
    /** @var integer */
24
    public $defaultUserId;
25
26
    public function __construct($apiResponse)
27
    {
28
        $this->_initScalarProperties($apiResponse, [
29
            'id',
30
            'name',
31
            'type',
32
            'webspace-id',
33
            'db-server-id',
34
            'default-user-id',
35
        ]);
36
    }
37
}
38