@@ -114,7 +114,7 @@ |
||
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Key |
| 117 | - * @return string |
|
| 117 | + * @return integer |
|
| 118 | 118 | */ |
| 119 | 119 | public function key() { |
| 120 | 120 | return $this->pos; |
@@ -31,11 +31,18 @@ |
||
| 31 | 31 | return serialize($m); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $m |
|
| 36 | + */ |
|
| 34 | 37 | function igbinary_unserialize($m) { |
| 35 | 38 | return unserialize($m); |
| 36 | 39 | } |
| 37 | 40 | } |
| 38 | 41 | if (!function_exists('setTimeout')) { |
| 42 | + |
|
| 43 | + /** |
|
| 44 | + * @param Closure $cb |
|
| 45 | + */ |
|
| 39 | 46 | function setTimeout($cb, $timeout = null, $id = null, $priority = null) { |
| 40 | 47 | return \PHPDaemon\Core\Timer::add($cb, $timeout, $id, $priority); |
| 41 | 48 | } |