MqManagementConfig::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 3
dl 0
loc 6
rs 9.4285
ccs 0
cts 5
cp 0
crap 2
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