IdeResponse::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 7
rs 10
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
class IdeResponse
6
{
7
    public string $uuid;
8
9
    public string $label;
10
11
    public object $links;
12
13
    public MemberResponse $owner;
14
15
    public function __construct(object $ide)
16
    {
17
        $this->uuid = $ide->uuid;
18
        $this->label = $ide->label;
19
        $this->links = $ide->_links;
20
        if (isset($ide->_embedded->owner)) {
21
            $this->owner = new MemberResponse($ide->_embedded->owner);
22
        }
23
    }
24
}
25