Completed
Pull Request — master (#5)
by Quim
05:12 queued 02:42
created

ConnectionConfig   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 42
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getHost() 0 4 1
A getPort() 0 4 1
A getUser() 0 4 1
A getPassword() 0 4 1
A getVHost() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: quimmanrique
5
 * Date: 13/02/17
6
 * Time: 16:23
7
 */
8
9
namespace Infrastructure\AmqpLib\v26\RabbitMQ\Queue\Config;
10
11
class ConnectionConfig
12
{
13
    protected $host;
14
    protected $port;
15
    protected $user;
16
    protected $password;
17
    protected $vHost;
18
19
    public function __construct($host, $port, $user, $password, $vHost='/')
20
    {
21
        $this->host = $host;
22
        $this->port = $port;
23
        $this->user = $user;
24
        $this->password = $password;
25
        $this->vHost = $vHost;
26
    }
27
28
    public function getHost()
29
    {
30
        return $this->host;
31
    }
32
33
    public function getPort()
34
    {
35
        return $this->port;
36
    }
37
38
    public function getUser()
39
    {
40
        return $this->user;
41
    }
42
43
    public function getPassword()
44
    {
45
        return $this->password;
46
    }
47
48
    public function getVHost()
49
    {
50
        return $this->vHost;
51
    }
52
}