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

ExchangeConfig   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getName() 0 4 1
A getType() 0 4 1
A getPassive() 0 4 1
A getDurable() 0 4 1
A getAutoDelete() 0 4 1
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
}