@@ -31,6 +31,9 @@ |
||
31 | 31 | parent::connect(); |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $direction |
|
36 | + */ |
|
34 | 37 | private function storeDebug(CommandInterface $command, $direction) |
35 | 38 | { |
36 | 39 | $firtsArg = $command->getArgument(0); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | /** |
52 | 52 | * @param mixed $parameters Connection parameters for one or more servers. |
53 | - * @param mixed $options Options to configure some behaviours of the client. |
|
53 | + * @param OptionsInterface $options Options to configure some behaviours of the client. |
|
54 | 54 | */ |
55 | 55 | public function __construct($parameters = null, $options = null) |
56 | 56 | { |
@@ -169,7 +169,7 @@ |
||
169 | 169 | /** |
170 | 170 | * Returns the list of IDs for the supported commands. |
171 | 171 | * |
172 | - * @return array |
|
172 | + * @return string[] |
|
173 | 173 | */ |
174 | 174 | public function getSupportedCommands() |
175 | 175 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * Returns the processed response to PUBSUB NUMSUB. |
44 | 44 | * |
45 | - * @param array $channels List of channels |
|
45 | + * @param string $channels List of channels |
|
46 | 46 | * |
47 | 47 | * @return array |
48 | 48 | */ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Returns a processed response to SENTINEL MASTERS or SENTINEL SLAVES. |
45 | 45 | * |
46 | - * @param array $servers List of Redis servers. |
|
46 | + * @param string $servers List of Redis servers. |
|
47 | 47 | * |
48 | 48 | * @return array |
49 | 49 | */ |
@@ -59,6 +59,7 @@ |
||
59 | 59 | * Subscribes to the specified channels. |
60 | 60 | * |
61 | 61 | * @param mixed $channel,... One or more channel names. |
62 | + * @param string $channel |
|
62 | 63 | */ |
63 | 64 | public function subscribe($channel /*, ... */) |
64 | 65 | { |
@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | */ |
20 | 20 | class SimpleSSDB extends SSDB |
21 | 21 | { |
22 | + /** |
|
23 | + * @param integer $port |
|
24 | + */ |
|
22 | 25 | function __construct($host, $port, $timeout_ms=2000){ |
23 | 26 | parent::__construct($host, $port, $timeout_ms); |
24 | 27 | $this->easy(); |
@@ -174,6 +177,10 @@ discard block |
||
174 | 177 | $resp = $this->check_easy_resp($cmd, $resp); |
175 | 178 | return $resp; |
176 | 179 | } |
180 | + |
|
181 | + /** |
|
182 | + * @param SSDB_Response $resp |
|
183 | + */ |
|
177 | 184 | private function check_easy_resp($cmd, $resp){ |
178 | 185 | $this->last_resp = $resp; |
179 | 186 | if($this->_easy){ |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | |
542 | 542 | |
543 | 543 | /** |
544 | - * @return mixed |
|
544 | + * @return DriverAbstract |
|
545 | 545 | */ |
546 | 546 | protected function backup() |
547 | 547 | { |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | } |
550 | 550 | |
551 | 551 | /** |
552 | - * @param $name |
|
552 | + * @param string $name |
|
553 | 553 | * @return void |
554 | 554 | */ |
555 | 555 | protected function required_extension($name) |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | |
560 | 560 | |
561 | 561 | /** |
562 | - * @param $file |
|
562 | + * @param string $file |
|
563 | 563 | * @return string |
564 | 564 | * @throws \Exception |
565 | 565 | */ |
@@ -599,7 +599,7 @@ discard block |
||
599 | 599 | |
600 | 600 | /** |
601 | 601 | * Object for Files & SQLite |
602 | - * @param $data |
|
602 | + * @param string $data |
|
603 | 603 | * @return string |
604 | 604 | */ |
605 | 605 | protected function encode($data) |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | * @param integer $time |
679 | 679 | * @param array $tags |
680 | 680 | * @param array $option | $option = array("tags" => array("a","b","c") |
681 | - * @return mixed |
|
681 | + * @return boolean|null |
|
682 | 682 | */ |
683 | 683 | public function setTags($keyword, $value = '', $time = 0, $tags = array(), $option = array()) |
684 | 684 | { |
@@ -689,6 +689,9 @@ discard block |
||
689 | 689 | return $this->set($keyword, $value, $time, $option); |
690 | 690 | } |
691 | 691 | |
692 | + /** |
|
693 | + * @param integer $time |
|
694 | + */ |
|
692 | 695 | protected function _handleTags($keyword, $time, $tags) |
693 | 696 | { |
694 | 697 | foreach ($tags as $tag) { |
@@ -747,7 +750,7 @@ discard block |
||
747 | 750 | * @param array $tags | array("a","b","c") |
748 | 751 | * @param int $time |
749 | 752 | * @param array $options |
750 | - * @return mixed |
|
753 | + * @return boolean |
|
751 | 754 | * @internal param array $option | $option = array("tags" => array("a","b","c") |
752 | 755 | */ |
753 | 756 | public function touchTags($tags = array(), $time = 300, $options = array()) |
@@ -767,7 +770,7 @@ discard block |
||
767 | 770 | /** |
768 | 771 | * @param array $tags | array("a","b","c") |
769 | 772 | * @param array $option | $option = array("tags" => array("a","b","c") |
770 | - * @return mixed |
|
773 | + * @return boolean |
|
771 | 774 | */ |
772 | 775 | public function deleteTags($tags = array(), $option = array()) |
773 | 776 | { |
@@ -788,7 +791,7 @@ discard block |
||
788 | 791 | * @param array $tags | array("a","b","c") |
789 | 792 | * @param integer |
790 | 793 | * @param array $option | $option = array("tags" => array("a","b","c") |
791 | - * @return mixed |
|
794 | + * @return boolean |
|
792 | 795 | */ |
793 | 796 | public function incrementTags($tags = array(), $step = 1, $option = array()) |
794 | 797 | { |
@@ -808,7 +811,7 @@ discard block |
||
808 | 811 | * @param array $tags | array("a","b","c") |
809 | 812 | * @param integer |
810 | 813 | * @param array $option | $option = array("tags" => array("a","b","c") |
811 | - * @return mixed |
|
814 | + * @return boolean |
|
812 | 815 | */ |
813 | 816 | public function decrementTags($tags = array(), $step = 1, $option = array()) |
814 | 817 | { |
@@ -836,6 +839,9 @@ discard block |
||
836 | 839 | */ |
837 | 840 | } |
838 | 841 | |
842 | + /** |
|
843 | + * @param string $index |
|
844 | + */ |
|
839 | 845 | public function _hit($index, $step = 1) |
840 | 846 | { |
841 | 847 | $instance = $this->config[ 'instance' ]; |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | |
230 | 230 | /** |
231 | 231 | * @param $filename |
232 | - * @return mixed |
|
232 | + * @return string |
|
233 | 233 | */ |
234 | 234 | public static function cleanFileName($filename) |
235 | 235 | { |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | } |
286 | 286 | |
287 | 287 | /** |
288 | - * @param $path |
|
288 | + * @param string $path |
|
289 | 289 | * @param bool $create |
290 | 290 | * @throws \Exception |
291 | 291 | */ |