1 | <?php |
||
9 | class Exchange implements RabbitMqObjectInterface{ |
||
10 | |||
11 | /** |
||
12 | * @var Client |
||
13 | */ |
||
14 | private $client; |
||
15 | |||
16 | /** |
||
17 | * Name |
||
18 | * @var string |
||
19 | */ |
||
20 | private $name; |
||
21 | |||
22 | /** |
||
23 | * Type direct, topic, headers or fanout |
||
24 | * @var string |
||
25 | */ |
||
26 | private $type; |
||
27 | |||
28 | /** |
||
29 | * Passive |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $passive = false; |
||
33 | |||
34 | /** |
||
35 | * Durable |
||
36 | * @var bool |
||
37 | */ |
||
38 | private $durable = false; |
||
39 | |||
40 | /** |
||
41 | * Auto delete |
||
42 | * @var bool |
||
43 | */ |
||
44 | private $autoDelete = false; |
||
45 | |||
46 | /** |
||
47 | * Internal |
||
48 | * @var bool |
||
49 | */ |
||
50 | private $internal = falsel; |
||
51 | |||
52 | /** |
||
53 | * No wait |
||
54 | * @var bool |
||
55 | */ |
||
56 | private $nowait = false; |
||
57 | |||
58 | /** |
||
59 | * Arguments |
||
60 | * @var array |
||
61 | */ |
||
62 | private $arguments = null; |
||
63 | |||
64 | /** |
||
65 | * Ticket |
||
66 | * @var int |
||
67 | */ |
||
68 | private $ticket = null; |
||
69 | |||
70 | /** |
||
71 | * Parameter to initialize object only one time |
||
72 | * @var bool |
||
73 | */ |
||
74 | private $init = false; |
||
75 | |||
76 | /** |
||
77 | * Set the to (Binding) |
||
78 | * @param Binding $to |
||
|
|||
79 | * @param string $name |
||
80 | * @param string $type direct, topic, headers or fanout |
||
81 | */ |
||
82 | public function __construct(Client $client, $name, $type) { |
||
87 | |||
88 | /** |
||
89 | * Get the exchange name |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getName() { |
||
95 | |||
96 | /** |
||
97 | * Get passive |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function getPassive() { |
||
103 | |||
104 | /** |
||
105 | * Set passive |
||
106 | * @param bool $passive |
||
107 | * @return Exchange |
||
108 | */ |
||
109 | public function setPassive($passive) { |
||
113 | |||
114 | /** |
||
115 | * Get durable |
||
116 | * @return bool |
||
117 | */ |
||
118 | public function getDurable() { |
||
121 | |||
122 | /** |
||
123 | * Set durable |
||
124 | * @param bool $durable |
||
125 | * @return Exchange |
||
126 | */ |
||
127 | public function setDurable($durable) { |
||
131 | |||
132 | /** |
||
133 | * Get autoDelete |
||
134 | * @return bool |
||
135 | */ |
||
136 | public function getAutoDelete() { |
||
139 | |||
140 | /** |
||
141 | * Set autoDelete |
||
142 | * @param bool $autoDelete |
||
143 | * @return Exchange |
||
144 | */ |
||
145 | public function setAutoDelete($autoDelete) { |
||
149 | |||
150 | /** |
||
151 | * Get internal |
||
152 | * @return bool |
||
153 | */ |
||
154 | public function getInternal() { |
||
157 | |||
158 | /** |
||
159 | * Set internal |
||
160 | * @param bool $internal |
||
161 | * @return Exchange |
||
162 | */ |
||
163 | public function setInternal($internal) { |
||
167 | |||
168 | /** |
||
169 | * Get nowait |
||
170 | * @return bool |
||
171 | */ |
||
172 | public function getNowait() { |
||
175 | |||
176 | /** |
||
177 | * Set nowait |
||
178 | * @param bool $nowait |
||
179 | * @return Exchange |
||
180 | */ |
||
181 | public function setNowait($nowait) { |
||
185 | |||
186 | /** |
||
187 | * Get arguments |
||
188 | * @return array |
||
189 | */ |
||
190 | public function getArguments() { |
||
193 | |||
194 | /** |
||
195 | * Set arguments |
||
196 | * @param array $arguments |
||
197 | * @return Exchange |
||
198 | */ |
||
199 | public function setArguments($arguments) { |
||
203 | |||
204 | /** |
||
205 | * Get ticket |
||
206 | * @return int |
||
207 | */ |
||
208 | public function getTicket() { |
||
211 | |||
212 | /** |
||
213 | * Set ticket |
||
214 | * @param int $ticket |
||
215 | * @return Exchange |
||
216 | */ |
||
217 | public function setTicket($ticket) { |
||
221 | |||
222 | public function init(AMQPChannel $amqpChannel) { |
||
236 | |||
237 | public function publish(AMQPMessage $message, $routingKey, $mandatory = false, |
||
244 | |||
245 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.