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

DiskSpace::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
dl 8
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 View Code Duplication
class DiskSpace extends \PleskX\Api\Struct
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
7
{
8
    /** @var int */
9
    public $total;
10
11
    /** @var int */
12
    public $used;
13
14
    /** @var int */
15
    public $free;
16
17
    public function __construct($apiResponse)
18
    {
19
        $this->_initScalarProperties($apiResponse, [
20
            'total',
21
            'used',
22
            'free',
23
        ]);
24
    }
25
}
26