@@ -22,6 +22,10 @@ discard block |
||
| 22 | 22 | private $correlationId; |
| 23 | 23 | private $callbackQueue; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $queueName |
|
| 27 | + * @param string $fromName |
|
| 28 | + */ |
|
| 25 | 29 | public function __construct($queueName, ConnectionManager $manager, $fromName, $connectionName = 'default') |
| 26 | 30 | { |
| 27 | 31 | $this->connectionName = $connectionName; |
@@ -43,7 +47,7 @@ discard block |
||
| 43 | 47 | } |
| 44 | 48 | |
| 45 | 49 | /** |
| 46 | - * @param $data |
|
| 50 | + * @param string $data |
|
| 47 | 51 | * @param int $expire |
| 48 | 52 | * @param int $priority |
| 49 | 53 | * @throws QueueNotFoundException |
@@ -133,7 +137,7 @@ discard block |
||
| 133 | 137 | /** |
| 134 | 138 | * @todo unecessary method set, its only exists to run tests whitout stay jailed in infinite while waiting response. |
| 135 | 139 | * |
| 136 | - * @param $content |
|
| 140 | + * @param string $content |
|
| 137 | 141 | */ |
| 138 | 142 | public function setResponse($content) |
| 139 | 143 | { |
@@ -163,7 +167,7 @@ discard block |
||
| 163 | 167 | } |
| 164 | 168 | |
| 165 | 169 | /** |
| 166 | - * @return string |
|
| 170 | + * @return boolean |
|
| 167 | 171 | */ |
| 168 | 172 | public function getExchange() |
| 169 | 173 | { |
@@ -171,7 +175,7 @@ discard block |
||
| 171 | 175 | } |
| 172 | 176 | |
| 173 | 177 | /** |
| 174 | - * @return string |
|
| 178 | + * @return boolean |
|
| 175 | 179 | */ |
| 176 | 180 | public function getExchangeType() |
| 177 | 181 | { |
@@ -3,13 +3,11 @@ |
||
| 3 | 3 | namespace Cmobi\RabbitmqBundle\Transport\Rpc; |
| 4 | 4 | |
| 5 | 5 | use Cmobi\RabbitmqBundle\Connection\CmobiAMQPChannel; |
| 6 | -use Cmobi\RabbitmqBundle\Connection\CmobiAMQPConnection; |
|
| 7 | 6 | use Cmobi\RabbitmqBundle\Connection\CmobiAMQPConnectionInterface; |
| 8 | 7 | use Cmobi\RabbitmqBundle\Connection\ConnectionManager; |
| 9 | 8 | use Cmobi\RabbitmqBundle\Queue\CmobiAMQPMessage; |
| 10 | 9 | use Cmobi\RabbitmqBundle\Queue\QueueProducerInterface; |
| 11 | 10 | use Cmobi\RabbitmqBundle\Transport\Exception\QueueNotFoundException; |
| 12 | -use PhpAmqpLib\Exception\AMQPTimeoutException; |
|
| 13 | 11 | use PhpAmqpLib\Message\AMQPMessage; |
| 14 | 12 | use Ramsey\Uuid\Uuid; |
| 15 | 13 | |