UpdatesInfo::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
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;
5
6
class UpdatesInfo extends \PleskX\Api\Struct
7
{
8
    /** @var string */
9
    public $lastInstalledUpdate;
10
11
    /** @var bool */
12
    public $installUpdatesAutomatically;
13
14
    public function __construct($apiResponse)
15
    {
16
        $this->_initScalarProperties($apiResponse, [
17
            'last_installed_update',
18
            'install_updates_automatically',
19
        ]);
20
    }
21
}
22