Completed
Push — master ( 9902d6...c7939a )
by Alexei
10s
created

Info::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.7666
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 $id;
12
13
    /** @var string */
14
    public $displayName;
15
16
    /** @var string */
17
    public $fullVersion;
18
19
    /** @var string */
20
    public $version;
21
22
    /** @var string */
23
    public $type;
24
25
    /** @var string */
26
    public $path;
27
28
    /** @var string */
29
    public $clipath;
30
31
    /** @var string */
32
    public $phpini;
33
34
    /** @var string */
35
    public $custom;
36
37
    /** @var string */
38
    public $handlerStatus;
39
40
    public function __construct($apiResponse)
41
    {
42
        $this->_initScalarProperties($apiResponse, [
43
            'id',
44
            'display-name',
45
            'full-version',
46
            'version',
47
            'type',
48
            'path',
49
            'clipath',
50
            'phpini',
51
            'custom',
52
            'handler-status',
53
        ]);
54
    }
55
}
56