Info::__construct()   A
last analyzed

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 2
1
<?php
2
// Copyright 1999-2021. Plesk International GmbH.
3
4
namespace PleskX\Api\Struct\Webspace;
5
6
class Info extends \PleskX\Api\Struct
7
{
8
    /** @var int */
9
    public $id;
10
11
    /** @var string */
12
    public $guid;
13
14
    /** @var string */
15
    public $name;
16
17
    public function __construct($apiResponse, $name = '')
18
    {
19
        $this->_initScalarProperties($apiResponse, [
20
            'id',
21
            'guid',
22
        ]);
23
        $this->name = $name;
24
    }
25
}
26