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

ExchangeOptions::setDeclare()   A

Complexity

Conditions 1
Paths 1

Size

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