Completed
Pull Request — master (#43)
by
unknown
10:37
created

Info::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.7333
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
// Copyright 1999-2018. Parallels IP Holdings GmbH.
3
4
namespace PleskX\Api\Struct\PhpHandler;
5
6
use PleskX\Api\Struct;
7
8
class Info extends Struct
9
{
10
    /** @var string */
11
    public $status;
12
13
    /** @var string */
14
    public $id;
15
16
    /** @var string */
17
    public $displayName;
18
19
    /** @var string */
20
    public $fullVersion;
21
22
    /** @var string */
23
    public $version;
24
25
    /** @var string */
26
    public $type;
27
28
    /** @var string */
29
    public $path;
30
31
    /** @var string */
32
    public $clipath;
33
34
    /** @var string */
35
    public $phpini;
36
37
    /** @var string */
38
    public $custom;
39
40
    /** @var string */
41
    public $handlerStatus;
42
43
    public function __construct($apiResponse)
44
    {
45
        $this->_initScalarProperties($apiResponse, [
46
            'status',
47
            'id',
48
            'display-name',
49
            'full-version',
50
            'version',
51
            'type',
52
            'path',
53
            'clipath',
54
            'phpini',
55
            'custom',
56
            'handler-status',
57
        ]);
58
    }
59
}
60