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

QueueConfig   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 56
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A getName() 0 4 1
A getPassive() 0 4 1
A getDurable() 0 4 1
A getExclusive() 0 4 1
A getAutoDelete() 0 4 1
A getNoWait() 0 4 1
A getArguments() 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 QueueConfig
13
{
14
    protected $name;
15
    protected $passive;
16
    protected $durable;
17
    protected $exclusive;
18
    protected $autoDelete;
19
    protected $noWait;
20
    protected $arguments;
21
22
    public function __construct($name, $passive, $durable, $exclusive, $autoDelete, $noWait = false, $arguments = array())
23
    {
24
        $this->name = $name;
25
        $this->passive = $passive;
26
        $this->durable = $durable;
27
        $this->exclusive = $exclusive;
28
        $this->autoDelete = $autoDelete;
29
        $this->noWait = $noWait;
30
        $this->arguments = $arguments;
31
    }
32
33
    public function getName()
34
    {
35
        return $this->name;
36
    }
37
38
    public function getPassive()
39
    {
40
        return $this->passive;
41
    }
42
43
    public function getDurable()
44
    {
45
        return $this->durable;
46
    }
47
48
    public function getExclusive()
49
    {
50
        return $this->exclusive;
51
    }
52
53
    public function getAutoDelete()
54
    {
55
        return $this->autoDelete;
56
    }
57
58
    public function getNoWait()
59
    {
60
        return $this->noWait;
61
    }
62
63
    public function getArguments()
64
    {
65
        return $this->arguments;
66
    }
67
}