@@ -86,7 +86,6 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Set the to (Binding). |
| 88 | 88 | * |
| 89 | - * @param Client $to |
|
| 90 | 89 | * @param string $name |
| 91 | 90 | * @param string $type direct, topic, headers or fanout |
| 92 | 91 | */ |
@@ -292,6 +291,9 @@ discard block |
||
| 292 | 291 | } |
| 293 | 292 | } |
| 294 | 293 | |
| 294 | + /** |
|
| 295 | + * @param string $routingKey |
|
| 296 | + */ |
|
| 295 | 297 | public function publish(Message $message, $routingKey, $mandatory = false, |
| 296 | 298 | $immediate = false, |
| 297 | 299 | $ticket = null) |
@@ -539,7 +539,7 @@ |
||
| 539 | 539 | $consumer->isNoAck(), |
| 540 | 540 | $consumer->isExclusive(), |
| 541 | 541 | $consumer->isNoWait(), |
| 542 | - function (AMQPMessage $msg) use ($consumer) { |
|
| 542 | + function(AMQPMessage $msg) use ($consumer) { |
|
| 543 | 543 | $consumer->callback($msg); |
| 544 | 544 | }, |
| 545 | 545 | $consumer->getTicket(), |
@@ -133,7 +133,6 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * Set the source (Binding). |
| 135 | 135 | * |
| 136 | - * @param Binding $source |
|
| 137 | 136 | * @param string $name |
| 138 | 137 | * @param ConsumerInterface[] $consumers |
| 139 | 138 | */ |
@@ -324,7 +323,7 @@ discard block |
||
| 324 | 323 | /** |
| 325 | 324 | * Get RabbitMq specific parameter : dead letter queue. |
| 326 | 325 | * |
| 327 | - * @return Queue |
|
| 326 | + * @return Exchange |
|
| 328 | 327 | */ |
| 329 | 328 | public function getDeadLetterExchanger() |
| 330 | 329 | { |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | { |
| 162 | 162 | $client = $this->makeClient(); |
| 163 | 163 | $queue = new Queue($client, 'test_direct_queue', [ |
| 164 | - new Consumer(function (AMQPMessage $msg) { |
|
| 164 | + new Consumer(function(AMQPMessage $msg) { |
|
| 165 | 165 | $this->msgReceived = $msg; |
| 166 | 166 | }, new NullLogger()) |
| 167 | 167 | ]); |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | $this->connection_timeout, |
| 309 | 309 | $this->read_write_timeout, |
| 310 | 310 | $this->context, |
| 311 | - $this->keepalive , |
|
| 311 | + $this->keepalive, |
|
| 312 | 312 | $this->heartbeat |
| 313 | 313 | ); |
| 314 | 314 | } else { |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | $this->connection_timeout, |
| 326 | 326 | $this->read_write_timeout, |
| 327 | 327 | $this->context, |
| 328 | - $this->keepalive , |
|
| 328 | + $this->keepalive, |
|
| 329 | 329 | $this->heartbeat |
| 330 | 330 | ); |
| 331 | 331 | } |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | */ |
| 360 | 360 | public function getQueues() |
| 361 | 361 | { |
| 362 | - return array_filter($this->rabbitMqObjects, function (RabbitMqObjectInterface $object) { |
|
| 362 | + return array_filter($this->rabbitMqObjects, function(RabbitMqObjectInterface $object) { |
|
| 363 | 363 | return $object instanceof QueueInterface; |
| 364 | 364 | }); |
| 365 | 365 | } |