Database   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 name() 0 4 1
A username() 0 4 1
A instanceName() 0 4 1
A password() 0 4 1
A dbCluster() 0 4 1
A host() 0 4 1
1
<?php
2
3
namespace Acquia\Cloud\Api\Response;
4
5
class Database extends \Acquia\Rest\Element
6
{
7
    /**
8
     * @return string
9
     */
10 3
    public function name()
11
    {
12 3
        return $this['name'];
13
    }
14
15
    /**
16
     * @return string
17
     */
18 3
    public function username()
19
    {
20 3
        return $this['username'];
21
    }
22
23
    /**
24
     * @return string
25
     */
26 3
    public function instanceName()
27
    {
28 3
        return $this['instance_name'];
29
    }
30
31
    /**
32
     * @return string
33
     */
34 3
    public function password()
35
    {
36 3
        return $this['password'];
37
    }
38
39
    /**
40
     * @return string
41
     */
42 3
    public function dbCluster()
43
    {
44 3
        return $this['db_cluster'];
45
    }
46
47
    /**
48
     * @return string
49
     */
50 3
    public function host()
51
    {
52 3
        return $this['host'];
53
    }
54
}
55