Queue   A
last analyzed

Complexity

Total Complexity 20

Size/Duplication

Total Lines 243
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 20
dl 0
loc 243
ccs 50
cts 50
cp 1
rs 10
c 0
b 0
f 0

20 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 6 1
A getType() 0 4 1
A setType() 0 6 1
A isPassive() 0 4 1
A setPassive() 0 6 1
A isDurable() 0 4 1
A setDurable() 0 6 1
A isAutoDelete() 0 4 1
A setAutoDelete() 0 6 1
A isExclusive() 0 4 1
A setExclusive() 0 6 1
A isNoWait() 0 4 1
A setNoWait() 0 6 1
A getArguments() 0 4 1
A setArguments() 0 6 1
A getTicket() 0 4 1
A setTicket() 0 6 1
A getRoutingKeys() 0 4 1
A setRoutingKeys() 0 6 1
1
<?php
2
3
namespace RabbitMqModule\Options;
4
5
use Zend\Stdlib\AbstractOptions;
6
7
/**
8
 * Class Queue
9
 * @package RabbitMqModule\Options
10
 */
11
class Queue extends AbstractOptions
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $name;
17
    /**
18
     * @var string
19
     */
20
    protected $type;
21
    /**
22
     * @var bool
23
     */
24
    protected $passive = false;
25
    /**
26
     * @var bool
27
     */
28
    protected $durable = true;
29
    /**
30
     * @var bool
31
     */
32
    protected $autoDelete = false;
33
    /**
34
     * @var bool
35
     */
36
    protected $exclusive = false;
37
    /**
38
     * @var bool
39
     */
40
    protected $noWait = false;
41
    /**
42
     * @var array
43
     */
44
    protected $arguments = [];
45
    /**
46
     * @var int
47
     */
48
    protected $ticket = 0;
49
    /**
50
     * @var array
51
     */
52
    protected $routingKeys = [];
53
54
    /**
55
     * @return string
56
     */
57 10
    public function getName()
58
    {
59 10
        return $this->name;
60
    }
61
62
    /**
63
     * @param string $name
64
     *
65
     * @return $this
66
     */
67 15
    public function setName($name)
68
    {
69 15
        $this->name = $name;
70
71 15
        return $this;
72
    }
73
74
    /**
75
     * @return string
76
     */
77 1
    public function getType()
78
    {
79 1
        return $this->type;
80
    }
81
82
    /**
83
     * @param string $type
84
     *
85
     * @return $this
86
     */
87 1
    public function setType($type)
88
    {
89 1
        $this->type = $type;
90
91 1
        return $this;
92
    }
93
94
    /**
95
     * @return bool
96
     */
97 7
    public function isPassive()
98
    {
99 7
        return $this->passive;
100
    }
101
102
    /**
103
     * @param bool $passive
104
     *
105
     * @return $this
106
     */
107 1
    public function setPassive($passive)
108
    {
109 1
        $this->passive = $passive;
110
111 1
        return $this;
112
    }
113
114
    /**
115
     * @return bool
116
     */
117 7
    public function isDurable()
118
    {
119 7
        return $this->durable;
120
    }
121
122
    /**
123
     * @param bool $durable
124
     *
125
     * @return $this
126
     */
127 1
    public function setDurable($durable)
128
    {
129 1
        $this->durable = $durable;
130
131 1
        return $this;
132
    }
133
134
    /**
135
     * @return bool
136
     */
137 7
    public function isAutoDelete()
138
    {
139 7
        return $this->autoDelete;
140
    }
141
142
    /**
143
     * @param bool $autoDelete
144
     *
145
     * @return $this
146
     */
147 1
    public function setAutoDelete($autoDelete)
148
    {
149 1
        $this->autoDelete = $autoDelete;
150
151 1
        return $this;
152
    }
153
154
    /**
155
     * @return bool
156
     */
157 7
    public function isExclusive()
158
    {
159 7
        return $this->exclusive;
160
    }
161
162
    /**
163
     * @param bool $exclusive
164
     *
165
     * @return $this
166
     */
167 1
    public function setExclusive($exclusive)
168
    {
169 1
        $this->exclusive = $exclusive;
170
171 1
        return $this;
172
    }
173
174
    /**
175
     * @return bool
176
     */
177 7
    public function isNoWait()
178
    {
179 7
        return $this->noWait;
180
    }
181
182
    /**
183
     * @param bool $noWait
184
     *
185
     * @return $this
186
     */
187 1
    public function setNoWait($noWait)
188
    {
189 1
        $this->noWait = $noWait;
190
191 1
        return $this;
192
    }
193
194
    /**
195
     * @return array
196
     */
197 7
    public function getArguments()
198
    {
199 7
        return $this->arguments;
200
    }
201
202
    /**
203
     * @param array $arguments
204
     *
205
     * @return $this
206
     */
207 1
    public function setArguments(array $arguments)
208
    {
209 1
        $this->arguments = $arguments;
210
211 1
        return $this;
212
    }
213
214
    /**
215
     * @return int
216
     */
217 7
    public function getTicket()
218
    {
219 7
        return $this->ticket;
220
    }
221
222
    /**
223
     * @param int $ticket
224
     *
225
     * @return $this
226
     */
227 1
    public function setTicket($ticket)
228
    {
229 1
        $this->ticket = $ticket;
230
231 1
        return $this;
232
    }
233
234
    /**
235
     * @return array
236
     */
237 7
    public function getRoutingKeys()
238
    {
239 7
        return $this->routingKeys;
240
    }
241
242
    /**
243
     * @param array $routingKeys
244
     *
245
     * @return $this
246
     */
247 1
    public function setRoutingKeys(array $routingKeys)
248
    {
249 1
        $this->routingKeys = $routingKeys;
250
251 1
        return $this;
252
    }
253
}
254