Completed
Push — master ( 3933ee...f4aa65 )
by Alexei
01:15
created

Memory   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
lcom 0
cbo 1
dl 0
loc 32
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
// Copyright 1999-2021. Plesk International GmbH.
3
4
namespace PleskX\Api\Struct\Server\Statistics;
5
6
class Memory extends \PleskX\Api\Struct
7
{
8
    /** @var int */
9
    public $total;
10
11
    /** @var int */
12
    public $used;
13
14
    /** @var int */
15
    public $free;
16
17
    /** @var int */
18
    public $shared;
19
20
    /** @var int */
21
    public $buffer;
22
23
    /** @var int */
24
    public $cached;
25
26
    public function __construct($apiResponse)
27
    {
28
        $this->_initScalarProperties($apiResponse, [
29
            'total',
30
            'used',
31
            'free',
32
            'shared',
33
            'buffer',
34
            'cached',
35
        ]);
36
    }
37
}
38