MqManagementConfig   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 54.55%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 39
ccs 6
cts 11
cp 0.5455
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getUser() 0 3 1
A getPassword() 0 3 1
A getUrl() 0 3 1
1
<?php
2
3
namespace mcorten87\rabbitmq_api;
4
5
6
use mcorten87\rabbitmq_api\objects\Password;
7
use mcorten87\rabbitmq_api\objects\Url;
8
use mcorten87\rabbitmq_api\objects\User;
9
10
class MqManagementConfig
11
{
12
13
    /**
14
     * @var User
15
     */
16
    private $user;
17
18
    /** @return User */
19 64
    public function getUser() : User {
20 64
        return $this->user;
21
    }
22
23
    /**
24
     * @var Password
25
     */
26
    private $password;
27
28
    /** @return Password */
29 64
    public function getPassword() : Password {
30 64
        return $this->password;
31
    }
32
33
34
    private $url;
35
36
    /** @return Url */
37 39
    public function getUrl() : Url {
38 39
        return $this->url;
39
    }
40
41
42
    public function __construct(User $user, Password $password, Url $url)
43
    {
44
        $this->user = $user;
45
        $this->password = $password;
46
        $this->url = $url;
47
    }
48
}
49