Completed
Push — master ( b6f93c...d2ae44 )
by Thomas Mauro
03:48
created

QueueOptions::setDeclare()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AMQPAL\Options;
4
5
use AMQPAL\AbstractOptions;
6
7
/**
8
 * Class QueueOptions
9
 *
10
 * @package AMQPAL\Options
11
 */
12
class QueueOptions extends AbstractOptions
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $name;
18
    /**
19
     * @var bool
20
     */
21
    protected $passive = false;
22
    /**
23
     * @var bool
24
     */
25
    protected $durable = true;
26
    /**
27
     * @var bool
28
     */
29
    protected $autoDelete = false;
30
    /**
31
     * @var bool
32
     */
33
    protected $exclusive = false;
34
    /**
35
     * @var bool
36
     */
37
    protected $noWait = false;
38
    /**
39
     * @var array
40
     */
41
    protected $arguments = [];
42
    /**
43
     * @var array
44
     */
45
    protected $routingKeys = [];
46
47
    /**
48
     * @return string
49
     */
50 1
    public function getName()
51
    {
52 1
        return $this->name;
53
    }
54
55
    /**
56
     * @param string $name
57
     *
58
     * @return $this
59
     */
60 1
    public function setName($name)
61
    {
62 1
        $this->name = $name;
63
64 1
        return $this;
65
    }
66
67
    /**
68
     * @return bool
69
     */
70 1
    public function isPassive()
71
    {
72 1
        return $this->passive;
73
    }
74
75
    /**
76
     * @param bool $passive
77
     *
78
     * @return $this
79
     */
80 1
    public function setPassive($passive)
81
    {
82 1
        $this->passive = $passive;
83
84 1
        return $this;
85
    }
86
87
    /**
88
     * @return bool
89
     */
90 1
    public function isDurable()
91
    {
92 1
        return $this->durable;
93
    }
94
95
    /**
96
     * @param bool $durable
97
     *
98
     * @return $this
99
     */
100 1
    public function setDurable($durable)
101
    {
102 1
        $this->durable = $durable;
103
104 1
        return $this;
105
    }
106
107
    /**
108
     * @return bool
109
     */
110 1
    public function isAutoDelete()
111
    {
112 1
        return $this->autoDelete;
113
    }
114
115
    /**
116
     * @param bool $autoDelete
117
     *
118
     * @return $this
119
     */
120 1
    public function setAutoDelete($autoDelete)
121
    {
122 1
        $this->autoDelete = $autoDelete;
123
124 1
        return $this;
125
    }
126
127
    /**
128
     * @return bool
129
     */
130 1
    public function isExclusive()
131
    {
132 1
        return $this->exclusive;
133
    }
134
135
    /**
136
     * @param bool $exclusive
137
     *
138
     * @return $this
139
     */
140 1
    public function setExclusive($exclusive)
141
    {
142 1
        $this->exclusive = $exclusive;
143
144 1
        return $this;
145
    }
146
147
    /**
148
     * @return bool
149
     */
150 1
    public function isNoWait()
151
    {
152 1
        return $this->noWait;
153
    }
154
155
    /**
156
     * @param bool $noWait
157
     *
158
     * @return $this
159
     */
160 1
    public function setNoWait($noWait)
161
    {
162 1
        $this->noWait = $noWait;
163
164 1
        return $this;
165
    }
166
167
    /**
168
     * @return array
169
     */
170 1
    public function getArguments()
171
    {
172 1
        return $this->arguments;
173
    }
174
175
    /**
176
     * @param array $arguments
177
     *
178
     * @return $this
179
     */
180 1
    public function setArguments(array $arguments)
181
    {
182 1
        $this->arguments = $arguments;
183
184 1
        return $this;
185
    }
186
187
    /**
188
     * @return array
189
     */
190 1
    public function getRoutingKeys()
191
    {
192 1
        return $this->routingKeys;
193
    }
194
195
    /**
196
     * @param array $routingKeys
197
     *
198
     * @return $this
199
     */
200 1
    public function setRoutingKeys(array $routingKeys)
201
    {
202 1
        $this->routingKeys = $routingKeys;
203
204 1
        return $this;
205
    }
206
}
207