Code Duplication    Length = 20-20 lines in 2 locations

src/Api/Struct/Server/Statistics/DiskSpace.php 1 location

@@ 6-25 (lines=20) @@
3
4
namespace PleskX\Api\Struct\Server\Statistics;
5
6
class DiskSpace 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
    public function __construct($apiResponse)
18
    {
19
        $this->_initScalarProperties($apiResponse, [
20
            'total',
21
            'used',
22
            'free',
23
        ]);
24
    }
25
}
26

src/Api/Struct/Server/Statistics/Swap.php 1 location

@@ 6-25 (lines=20) @@
3
4
namespace PleskX\Api\Struct\Server\Statistics;
5
6
class Swap 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
    public function __construct($apiResponse)
18
    {
19
        $this->_initScalarProperties($apiResponse, [
20
            'total',
21
            'used',
22
            'free',
23
        ]);
24
    }
25
}
26