@@ -53,7 +53,7 @@ |
||
53 | 53 | * @param string $path Path |
54 | 54 | * @param mixed $cb Callback |
55 | 55 | * @param integer $flags Look inotify_add_watch() |
56 | - * @return true |
|
56 | + * @return boolean |
|
57 | 57 | */ |
58 | 58 | public function addWatch($path, $cb, $flags = null) { |
59 | 59 | $path = realpath($path); |
@@ -154,7 +154,7 @@ |
||
154 | 154 | * Returns instance object |
155 | 155 | * @param string $arg name / array config / ConfigSection |
156 | 156 | * @param boolean $spawn Spawn? Default is true |
157 | - * @return this |
|
157 | + * @return Pool |
|
158 | 158 | */ |
159 | 159 | public static function getInstance($arg = '', $spawn = true) { |
160 | 160 | if ($arg === 'default') { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Sets onActivation callback |
45 | 45 | * @param callable $cb Callback |
46 | - * @return this |
|
46 | + * @return PubSubEvent |
|
47 | 47 | */ |
48 | 48 | public function onActivation($cb) { |
49 | 49 | $this->actCb = $cb; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * Sets onDeactivation callback |
55 | 55 | * @param callable $cb Callback |
56 | - * @return this |
|
56 | + * @return PubSubEvent |
|
57 | 57 | */ |
58 | 58 | public function onDeactivation($cb) { |
59 | 59 | $this->deactCb = $cb; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Init |
65 | - * @return object |
|
65 | + * @return PubSubEvent |
|
66 | 66 | */ |
67 | 67 | public static function init() { |
68 | 68 | return new static; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * Subscribe |
73 | 73 | * @param object $obj Subcriber object |
74 | 74 | * @param callable $cb Callback |
75 | - * @return this |
|
75 | + * @return PubSubEvent |
|
76 | 76 | */ |
77 | 77 | public function sub($obj, $cb) { |
78 | 78 | $act = $this->count() === 0; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | /** |
89 | 89 | * Unsubscripe |
90 | 90 | * @param object $obj Subscriber object |
91 | - * @return this |
|
91 | + * @return PubSubEvent |
|
92 | 92 | */ |
93 | 93 | public function unsub($obj) { |
94 | 94 | $this->detach($obj); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | /** |
104 | 104 | * Publish |
105 | 105 | * @param mixed $data Data |
106 | - * @return this |
|
106 | + * @return PubSubEvent |
|
107 | 107 | */ |
108 | 108 | public function pub($data) { |
109 | 109 | foreach ($this as $obj) { |
@@ -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 | */ |