Completed
Push — master ( 5fca0d...2a987b )
by Quim
02:16
created

ExchangeConfig::getName()   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:12
7
 */
8
9
namespace Cmp\Queues\Infrastructure\AmqpLib\v26\RabbitMQ\Queue\Config;
10
11
12
class ExchangeConfig
13
{
14
    protected $name;
15
    protected $type;
16
    protected $passive;
17
    protected $durable;
18
    protected $autoDelete;
19
20
    public function __construct($name, $type, $passive, $durable, $autoDelete)
21
    {
22
        $this->name = $name;
23
        $this->type = $type;
24
        $this->passive = $passive;
25
        $this->durable = $durable;
26
        $this->autoDelete = $autoDelete;
27
    }
28
29
    public function getName()
30
    {
31
        return $this->name;
32
    }
33
34
    public function getType()
35
    {
36
        return $this->type;
37
    }
38
39
    public function getPassive()
40
    {
41
        return $this->passive;
42
    }
43
44
    public function getDurable()
45
    {
46
        return $this->durable;
47
    }
48
49
    public function getAutoDelete()
50
    {
51
        return $this->autoDelete;
52
    }
53
54
}