@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * __construct |
| 84 | 84 | * @param Application $appInstance [@todo description] |
| 85 | 85 | * @param string $id [@todo description] |
| 86 | - * @param array $server [@todo description] |
|
| 86 | + * @param string $server [@todo description] |
|
| 87 | 87 | * @return void |
| 88 | 88 | */ |
| 89 | 89 | public function __construct($appInstance, $id, $server) |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | |
| 329 | 329 | /** |
| 330 | 330 | * sendPacket |
| 331 | - * @param object $pct [@todo description] |
|
| 331 | + * @param string $pct [@todo description] |
|
| 332 | 332 | * @param callable $cb [@todo description] |
| 333 | 333 | * @callback $cb ( ) |
| 334 | 334 | * @return void |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | * Called when new frame received. |
| 72 | 72 | * @param string $data Frame's data. |
| 73 | 73 | * @param string $type Frame's type ("STRING" OR "BINARY"). |
| 74 | - * @return boolean Success. |
|
| 74 | + * @return boolean|null Success. |
|
| 75 | 75 | */ |
| 76 | 76 | public function onFrame($data, $type) |
| 77 | 77 | { |
@@ -26,7 +26,6 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * __construct |
| 28 | 28 | * @param Application $sockjs |
| 29 | - * @param object $conn |
|
| 30 | 29 | */ |
| 31 | 30 | public function __construct($sockjs, $route) |
| 32 | 31 | { |
@@ -81,7 +80,6 @@ discard block |
||
| 81 | 80 | |
| 82 | 81 | /** |
| 83 | 82 | * onPacket |
| 84 | - * @param string $data Frame's contents. |
|
| 85 | 83 | * @param integer $type Frame's type. |
| 86 | 84 | * @return void |
| 87 | 85 | */ |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Call given method of all objects in storage |
| 16 | - * @param string $method Method name |
|
| 17 | 16 | * @param mixed ...$args Arguments |
| 18 | 17 | * @return integer Number of called objects |
| 19 | 18 | */ |
@@ -91,6 +91,7 @@ |
||
| 91 | 91 | /** |
| 92 | 92 | * Set ID of this Thread |
| 93 | 93 | * @param integer Id |
| 94 | + * @param integer $id |
|
| 94 | 95 | * @return void |
| 95 | 96 | */ |
| 96 | 97 | public function setId($id) |
@@ -371,7 +371,7 @@ |
||
| 371 | 371 | } |
| 372 | 372 | |
| 373 | 373 | /** |
| 374 | - * @param $signo |
|
| 374 | + * @param integer $signo |
|
| 375 | 375 | */ |
| 376 | 376 | public function signalToChildren($signo) |
| 377 | 377 | { |
@@ -28,9 +28,8 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Propagate event |
| 31 | - * @param string $name Event name |
|
| 32 | 31 | * @param mixed ...$args Arguments |
| 33 | - * @return this |
|
| 32 | + * @return EventHandlers |
|
| 34 | 33 | */ |
| 35 | 34 | public function event() |
| 36 | 35 | { |
@@ -52,9 +51,8 @@ discard block |
||
| 52 | 51 | |
| 53 | 52 | /** |
| 54 | 53 | * Propagate event |
| 55 | - * @param string $name Event name |
|
| 56 | 54 | * @param mixed ...$args Arguments |
| 57 | - * @return this |
|
| 55 | + * @return EventHandlers |
|
| 58 | 56 | */ |
| 59 | 57 | public function trigger() |
| 60 | 58 | { |
@@ -76,7 +74,6 @@ discard block |
||
| 76 | 74 | |
| 77 | 75 | /** |
| 78 | 76 | * Propagate event |
| 79 | - * @param string $name Event name |
|
| 80 | 77 | * @param mixed ...$args Arguments |
| 81 | 78 | * @return integer |
| 82 | 79 | */ |
@@ -112,7 +109,7 @@ discard block |
||
| 112 | 109 | * Bind event or events |
| 113 | 110 | * @param string|array $event Event name |
| 114 | 111 | * @param callable $cb Callback |
| 115 | - * @return this |
|
| 112 | + * @return EventHandlers |
|
| 116 | 113 | */ |
| 117 | 114 | public function bind($event, $cb) |
| 118 | 115 | { |
@@ -131,7 +128,7 @@ discard block |
||
| 131 | 128 | * @alias EventHandlers::bind |
| 132 | 129 | * @param string|array $event Event name |
| 133 | 130 | * @param callable $cb Callback |
| 134 | - * @return this |
|
| 131 | + * @return EventHandlers |
|
| 135 | 132 | */ |
| 136 | 133 | public function on($event, $cb) |
| 137 | 134 | { |
@@ -142,7 +139,7 @@ discard block |
||
| 142 | 139 | * Unbind event(s) or callback from event(s) |
| 143 | 140 | * @param string|array $event Event name |
| 144 | 141 | * @param callable $cb Callback, optional |
| 145 | - * @return this |
|
| 142 | + * @return EventHandlers |
|
| 146 | 143 | */ |
| 147 | 144 | public function unbind($event, $cb = null) |
| 148 | 145 | { |
@@ -170,7 +167,7 @@ discard block |
||
| 170 | 167 | * @alias EventHandlers::unbind |
| 171 | 168 | * @param string|array $event Event name |
| 172 | 169 | * @param callable $cb Callback, optional |
| 173 | - * @return this |
|
| 170 | + * @return EventHandlers |
|
| 174 | 171 | */ |
| 175 | 172 | public function off($event, $cb) |
| 176 | 173 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Deferred event 'onSessionStart' |
| 58 | - * @return callable |
|
| 58 | + * @return \Closure |
|
| 59 | 59 | */ |
| 60 | 60 | public function onSessionStartEvent() |
| 61 | 61 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * Deferred event 'onSessionRead' |
| 86 | - * @return callable |
|
| 86 | + * @return \Closure |
|
| 87 | 87 | */ |
| 88 | 88 | public function onSessionReadEvent() |
| 89 | 89 | { |
@@ -226,6 +226,7 @@ discard block |
||
| 226 | 226 | * Parse quadro word (8 bytes) |
| 227 | 227 | * @param string &$p Data |
| 228 | 228 | * @param boolean $l Little endian? |
| 229 | + * @param string|false $p |
|
| 229 | 230 | * @return integer |
| 230 | 231 | */ |
| 231 | 232 | public static function getQword(&$p, $l = false) |
@@ -382,7 +383,7 @@ discard block |
||
| 382 | 383 | /** |
| 383 | 384 | * Convert bytes into integer |
| 384 | 385 | * @alias Binary::bytes2int |
| 385 | - * @param string $str Bytes |
|
| 386 | + * @param integer $str Bytes |
|
| 386 | 387 | * @param boolean $l Little endian? Default is false |
| 387 | 388 | * @return integer |
| 388 | 389 | */ |