Passed
Pull Request — master (#34)
by Adam
03:39
created

IdeResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 15
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace AcquiaCloudApi\Response;
4
5
/**
6
 * Class IdeResponse
7
 * @package AcquiaCloudApi\Response
8
 */
9
class IdeResponse
10
{
11
    public $uuid;
12
    public $label;
13
    public $links;
14
15
    /**
16
     * IdeResponse constructor.
17
     * @param object $ide
18
     */
19
    public function __construct($ide)
20
    {
21
        $this->uuid = $ide->uuid;
22
        $this->label = $ide->label;
23
        $this->links = $ide->_links;
24
    }
25
}
26