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

ConnectionConfig::getHost()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
}