Completed
Pull Request — master (#97)
by
unknown
04:51 queued 03:41
created

Other::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
// Copyright 1999-2021. Plesk International GmbH.
3
4
namespace PleskX\Api\Struct\Server\Statistics;
5
6
class Other extends \PleskX\Api\Struct
7
{
8
    /** @var string */
9
    public $cpuName;
10
11
    /** @var int */
12
    public $serverUptime;
13
14
    /** @var bool */
15
    public $insideVirtuell;
16
17
    public function __construct($apiResponse)
18
    {
19
        $this->_initScalarProperties($apiResponse, [
20
            ['cpu' => 'cpuName'],
21
            ['uptime' => 'serverUptime'],
22
            ['inside_vz' => 'insideVirtuell'],
23
        ]);
24
    }
25
}
26