@@ -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 | { |
@@ -359,6 +359,7 @@ |
||
| 359 | 359 | /** |
| 360 | 360 | * Load config file |
| 361 | 361 | * @param string Path |
| 362 | + * @param string $path |
|
| 362 | 363 | * @return boolean Success |
| 363 | 364 | */ |
| 364 | 365 | public function loadFile($path) |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Get real frame type identificator |
| 112 | - * @param $type |
|
| 112 | + * @param string|null $type |
|
| 113 | 113 | * @return integer |
| 114 | 114 | */ |
| 115 | 115 | public function getFrameType($type) |
@@ -453,6 +453,9 @@ discard block |
||
| 453 | 453 | return true; |
| 454 | 454 | } |
| 455 | 455 | |
| 456 | + /** |
|
| 457 | + * @param string $proto |
|
| 458 | + */ |
|
| 456 | 459 | protected function switchToProtocol($proto) |
| 457 | 460 | { |
| 458 | 461 | $class = '\\PHPDaemon\\Servers\\WebSocket\\Protocols\\' . $proto; |