Passed
Push — master ( 7e5c00...1b1e9e )
by Adam
02:34
created

VariableResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 15
rs 10
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 VariableResponse
7
 * @package AcquiaCloudApi\Response
8
 */
9
class VariableResponse
10
{
11
    public $name;
12
    public $value;
13
    public $links;
14
15
    /**
16
     * VariableResponse constructor.
17
     * @param object $variable
18
     */
19
    public function __construct($variable)
20
    {
21
        $this->name = $variable->name;
22
        $this->value = $variable->value;
23
        $this->links = $variable->_links;
24
    }
25
}
26