@@ -164,7 +164,7 @@ |
||
| 164 | 164 | * Returns instance object |
| 165 | 165 | * @param string $arg name / array config / ConfigSection |
| 166 | 166 | * @param boolean $spawn Spawn? Default is true |
| 167 | - * @return this |
|
| 167 | + * @return Pool |
|
| 168 | 168 | */ |
| 169 | 169 | public static function getInstance($arg = '', $spawn = true) |
| 170 | 170 | { |
@@ -361,7 +361,7 @@ |
||
| 361 | 361 | * @param string $method [@todo description] |
| 362 | 362 | * @param object $req [@todo description] |
| 363 | 363 | * @param object $upstream [@todo description] |
| 364 | - * @return object |
|
| 364 | + * @return string |
|
| 365 | 365 | */ |
| 366 | 366 | public function callMethod($method, $req, $upstream) |
| 367 | 367 | { |
@@ -46,6 +46,7 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * Executes one callback from the top with given arguments without taking it out |
| 48 | 48 | * @param mixed ...$args Arguments |
| 49 | + * @param \PHPDaemon\Clients\Gibson\Connection $args |
|
| 49 | 50 | * @return boolean |
| 50 | 51 | */ |
| 51 | 52 | public function executeAndKeepOne(...$args) |
@@ -179,7 +179,7 @@ |
||
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * @param string $cmd Command |
| 182 | - * @return integer |
|
| 182 | + * @return string |
|
| 183 | 183 | */ |
| 184 | 184 | public static function getCodeByCommand($cmd) |
| 185 | 185 | { |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | 164 | * Apply mask |
| 165 | - * @param $data |
|
| 165 | + * @param string|false $data |
|
| 166 | 166 | * @param string|false $mask |
| 167 | 167 | * @return mixed |
| 168 | 168 | */ |
@@ -854,7 +854,7 @@ |
||
| 854 | 854 | } |
| 855 | 855 | |
| 856 | 856 | /** |
| 857 | - * @return mixed |
|
| 857 | + * @return integer |
|
| 858 | 858 | */ |
| 859 | 859 | public function getId() |
| 860 | 860 | { |
@@ -432,6 +432,9 @@ |
||
| 432 | 432 | } |
| 433 | 433 | |
| 434 | 434 | |
| 435 | + /** |
|
| 436 | + * @param integer $id |
|
| 437 | + */ |
|
| 435 | 438 | public function addChannel($id, Channel $channel) |
| 436 | 439 | { |
| 437 | 440 | $this->channels[$id] = $channel; |
@@ -14,6 +14,7 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * @param OutgoingFrame $frame |
| 16 | 16 | * @param callable|null $callback |
| 17 | + * @return boolean |
|
| 17 | 18 | */ |
| 18 | 19 | public function command(OutgoingFrame $frame, callable $callback = null); |
| 19 | 20 | } |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | |
| 168 | 168 | /** |
| 169 | 169 | * Parse an AMQP byte-array value. |
| 170 | - * @return array |
|
| 170 | + * @return string |
|
| 171 | 171 | */ |
| 172 | 172 | private function parseByteArray() |
| 173 | 173 | { |