Server   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 50
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A services() 0 4 1
A availabilityZone() 0 4 1
A region() 0 4 1
A amiType() 0 4 1
A name() 0 4 1
A fqdn() 0 4 1
1
<?php
2
3
namespace Acquia\Cloud\Api\Response;
4
5
class Server extends \Acquia\Rest\Element
6
{
7
    /**
8
     * @return array
9
     */
10 3
    public function services()
11
    {
12 3
        return $this['services'];
13
    }
14
15
    /**
16
     * @return string
17
     */
18 3
    public function availabilityZone()
19
    {
20 3
        return $this['ec2_availability_zone'];
21
    }
22
23
    /**
24
     * @return string
25
     */
26 3
    public function region()
27
    {
28 3
        return $this['ec2_region'];
29
    }
30
31
    /**
32
     * @return string
33
     */
34 3
    public function amiType()
35
    {
36 3
        return $this['ami_type'];
37
    }
38
39
    /**
40
     * @return string
41
     */
42 3
    public function name()
43
    {
44 3
        return $this['name'];
45
    }
46
47
    /**
48
     * @return string
49
     */
50 3
    public function fqdn()
51
    {
52 3
        return $this['fqdn'];
53
    }
54
}
55