@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | * @param integer $offset Offset |
| 447 | 447 | * @param integer $length Length |
| 448 | 448 | * @param integer $pri Priority |
| 449 | - * @return true Success |
|
| 449 | + * @return boolean Success |
|
| 450 | 450 | */ |
| 451 | 451 | public static function sendfile( |
| 452 | 452 | $outfd, |
@@ -607,10 +607,10 @@ discard block |
||
| 607 | 607 | |
| 608 | 608 | /** |
| 609 | 609 | * Generates closure tempnam handler |
| 610 | - * @param $dir |
|
| 611 | - * @param $prefix |
|
| 612 | - * @param $cb |
|
| 613 | - * @param $tries |
|
| 610 | + * @param string $dir |
|
| 611 | + * @param string $prefix |
|
| 612 | + * @param CallbackWrapper|null $cb |
|
| 613 | + * @param integer $tries |
|
| 614 | 614 | */ |
| 615 | 615 | protected static function tempnamHandler($dir, $prefix, $cb, &$tries) |
| 616 | 616 | { |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | * @param string $path Path |
| 143 | 143 | * @param mixed $cb Callback |
| 144 | 144 | * @param integer $flags Look inotify_add_watch() |
| 145 | - * @return true |
|
| 145 | + * @return boolean |
|
| 146 | 146 | */ |
| 147 | 147 | public function addWatch($path, $cb, $flags = null) |
| 148 | 148 | { |
@@ -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; |