Completed
Push — master ( 4cd93a...e8f4ec )
by Thomas Mauro
10:51
created

QueueOptions::isNoWait()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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 array
36
     */
37
    protected $arguments = [];
38
39
    /**
40
     * @return string
41
     */
42 3
    public function getName()
43
    {
44 3
        return $this->name;
45
    }
46
47
    /**
48
     * @param string $name
49
     *
50
     * @return $this
51
     */
52 3
    public function setName($name)
53
    {
54 3
        $this->name = $name;
55
56 3
        return $this;
57
    }
58
59
    /**
60
     * @return bool
61
     */
62 2
    public function isPassive()
63
    {
64 2
        return $this->passive;
65
    }
66
67
    /**
68
     * @param bool $passive
69
     *
70
     * @return $this
71
     */
72 1
    public function setPassive($passive)
73
    {
74 1
        $this->passive = $passive;
75
76 1
        return $this;
77
    }
78
79
    /**
80
     * @return bool
81
     */
82 2
    public function isDurable()
83
    {
84 2
        return $this->durable;
85
    }
86
87
    /**
88
     * @param bool $durable
89
     *
90
     * @return $this
91
     */
92 1
    public function setDurable($durable)
93
    {
94 1
        $this->durable = $durable;
95
96 1
        return $this;
97
    }
98
99
    /**
100
     * @return bool
101
     */
102 2
    public function isAutoDelete()
103
    {
104 2
        return $this->autoDelete;
105
    }
106
107
    /**
108
     * @param bool $autoDelete
109
     *
110
     * @return $this
111
     */
112 1
    public function setAutoDelete($autoDelete)
113
    {
114 1
        $this->autoDelete = $autoDelete;
115
116 1
        return $this;
117
    }
118
119
    /**
120
     * @return bool
121
     */
122 2
    public function isExclusive()
123
    {
124 2
        return $this->exclusive;
125
    }
126
127
    /**
128
     * @param bool $exclusive
129
     *
130
     * @return $this
131
     */
132 1
    public function setExclusive($exclusive)
133
    {
134 1
        $this->exclusive = $exclusive;
135
136 1
        return $this;
137
    }
138
139
    /**
140
     * @return array
141
     */
142 2
    public function getArguments()
143
    {
144 2
        return $this->arguments;
145
    }
146
147
    /**
148
     * @param array $arguments
149
     *
150
     * @return $this
151
     */
152 1
    public function setArguments(array $arguments)
153
    {
154 1
        $this->arguments = $arguments;
155
156 1
        return $this;
157
    }
158
}
159