@@ -9,6 +9,12 @@ |
||
9 | 9 | |
10 | 10 | private static $amqpLazyConnection; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $host |
|
14 | + * @param string $port |
|
15 | + * @param string $user |
|
16 | + * @param string $password |
|
17 | + */ |
|
12 | 18 | public static function getInstance($host, $port, $user, $password, $vhost = '/') |
13 | 19 | { |
14 | 20 | if(null === static::$amqpLazyConnection) { |
@@ -51,6 +51,9 @@ |
||
51 | 51 | $this->channel->wait(); |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param callable $callback |
|
56 | + */ |
|
54 | 57 | private function initialize($callback) |
55 | 58 | { |
56 | 59 | $this->rabbitMQMessageHandler->setEventCallback($callback); |