@@ -337,7 +337,7 @@ |
||
337 | 337 | |
338 | 338 | /** |
339 | 339 | * Handles the output from downstream requests |
340 | - * @param object $req |
|
340 | + * @param \stdClass $req |
|
341 | 341 | * @param string $appStatus |
342 | 342 | * @param string $protoStatus |
343 | 343 | * @return void |
@@ -343,6 +343,9 @@ |
||
343 | 343 | |
344 | 344 | /** |
345 | 345 | * End request |
346 | + * @param \stdClass $req |
|
347 | + * @param integer $appStatus |
|
348 | + * @param integer $protoStatus |
|
346 | 349 | * @return void |
347 | 350 | */ |
348 | 351 | public function endRequest($req, $appStatus, $protoStatus) { |
@@ -371,7 +371,7 @@ |
||
371 | 371 | * @param string $method [@todo description] |
372 | 372 | * @param object $req [@todo description] |
373 | 373 | * @param object $upstream [@todo description] |
374 | - * @return object |
|
374 | + * @return string |
|
375 | 375 | */ |
376 | 376 | public function callMethod($method, $req, $upstream) { |
377 | 377 | $method = strtr(ucwords(strtr($method, ['_' => ' '])), [' ' => '']); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * __construct |
82 | 82 | * @param Application $appInstance [@todo description] |
83 | 83 | * @param string $id [@todo description] |
84 | - * @param array $server [@todo description] |
|
84 | + * @param string $server [@todo description] |
|
85 | 85 | * @return void |
86 | 86 | */ |
87 | 87 | public function __construct($appInstance, $id, $server) { |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | |
316 | 316 | /** |
317 | 317 | * sendPacket |
318 | - * @param object $pct [@todo description] |
|
318 | + * @param string $pct [@todo description] |
|
319 | 319 | * @param callable $cb [@todo description] |
320 | 320 | * @callback $cb ( ) |
321 | 321 | * @return void |
@@ -66,7 +66,7 @@ |
||
66 | 66 | * Called when new frame received. |
67 | 67 | * @param string $data Frame's data. |
68 | 68 | * @param string $type Frame's type ("STRING" OR "BINARY"). |
69 | - * @return boolean Success. |
|
69 | + * @return boolean|null Success. |
|
70 | 70 | */ |
71 | 71 | public function onFrame($data, $type) { |
72 | 72 | $this->realConn->onFrame($data, $type); |
@@ -25,7 +25,6 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * __construct |
27 | 27 | * @param Application $sockjs |
28 | - * @param object $conn |
|
29 | 28 | */ |
30 | 29 | public function __construct($sockjs, $route) { |
31 | 30 | $this->sockjs = $sockjs; |
@@ -75,7 +74,6 @@ discard block |
||
75 | 74 | |
76 | 75 | /** |
77 | 76 | * onPacket |
78 | - * @param string $data Frame's contents. |
|
79 | 77 | * @param integer $type Frame's type. |
80 | 78 | * @return void |
81 | 79 | */ |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Call given method of all objects in storage |
15 | - * @param string $method Method name |
|
16 | 15 | * @param mixed ...$args Arguments |
17 | 16 | * @return integer Number of called objects |
18 | 17 | */ |
@@ -362,7 +362,7 @@ |
||
362 | 362 | } |
363 | 363 | |
364 | 364 | /** |
365 | - * @param $signo |
|
365 | + * @param integer $signo |
|
366 | 366 | */ |
367 | 367 | public function signalToChildren($signo) { |
368 | 368 | foreach ($this->collections as $col) { |
@@ -27,9 +27,8 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Propagate event |
30 | - * @param string $name Event name |
|
31 | 30 | * @param mixed ...$args Arguments |
32 | - * @return this |
|
31 | + * @return EventHandlers |
|
33 | 32 | */ |
34 | 33 | public function event() { |
35 | 34 | $args = func_get_args(); |
@@ -50,9 +49,8 @@ discard block |
||
50 | 49 | |
51 | 50 | /** |
52 | 51 | * Propagate event |
53 | - * @param string $name Event name |
|
54 | 52 | * @param mixed ...$args Arguments |
55 | - * @return this |
|
53 | + * @return EventHandlers |
|
56 | 54 | */ |
57 | 55 | public function trigger() { |
58 | 56 | $args = func_get_args(); |
@@ -73,7 +71,6 @@ discard block |
||
73 | 71 | |
74 | 72 | /** |
75 | 73 | * Propagate event |
76 | - * @param string $name Event name |
|
77 | 74 | * @param mixed ...$args Arguments |
78 | 75 | * @return integer |
79 | 76 | */ |
@@ -107,7 +104,7 @@ discard block |
||
107 | 104 | * Bind event or events |
108 | 105 | * @param string|array $event Event name |
109 | 106 | * @param callable $cb Callback |
110 | - * @return this |
|
107 | + * @return EventHandlers |
|
111 | 108 | */ |
112 | 109 | public function bind($event, $cb) { |
113 | 110 | if ($cb !== null) { |
@@ -125,7 +122,7 @@ discard block |
||
125 | 122 | * @alias EventHandlers::bind |
126 | 123 | * @param string|array $event Event name |
127 | 124 | * @param callable $cb Callback |
128 | - * @return this |
|
125 | + * @return EventHandlers |
|
129 | 126 | */ |
130 | 127 | public function on($event, $cb) { |
131 | 128 | return $this->bind($event, $cb); |
@@ -135,7 +132,7 @@ discard block |
||
135 | 132 | * Unbind event(s) or callback from event(s) |
136 | 133 | * @param string|array $event Event name |
137 | 134 | * @param callable $cb Callback, optional |
138 | - * @return this |
|
135 | + * @return EventHandlers |
|
139 | 136 | */ |
140 | 137 | public function unbind($event, $cb = null) { |
141 | 138 | if ($cb !== null) { |
@@ -162,7 +159,7 @@ discard block |
||
162 | 159 | * @alias EventHandlers::unbind |
163 | 160 | * @param string|array $event Event name |
164 | 161 | * @param callable $cb Callback, optional |
165 | - * @return this |
|
162 | + * @return EventHandlers |
|
166 | 163 | */ |
167 | 164 | public function off($event, $cb) { |
168 | 165 | return $this->unbind($event, $cb); |