@@ -79,6 +79,9 @@ |
||
79 | 79 | $this->doClear('delayed'); |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $state |
|
84 | + */ |
|
82 | 85 | protected function doClear($state) |
83 | 86 | { |
84 | 87 | try { |
@@ -38,6 +38,10 @@ discard block |
||
38 | 38 | */ |
39 | 39 | private $queue; |
40 | 40 | |
41 | + /** |
|
42 | + * @param boolean $serialize |
|
43 | + * @param integer $perms |
|
44 | + */ |
|
41 | 45 | public function __construct($key, $serialize = null, $perms = null) |
42 | 46 | { |
43 | 47 | $this->key = $key; |
@@ -118,6 +122,9 @@ discard block |
||
118 | 122 | return $this->queue; |
119 | 123 | } |
120 | 124 | |
125 | + /** |
|
126 | + * @param integer|null $errorCode |
|
127 | + */ |
|
121 | 128 | private static function getErrorMessage($errorCode) |
122 | 129 | { |
123 | 130 | if ($errorCode) { |
@@ -41,6 +41,9 @@ |
||
41 | 41 | $this->pheanstalk = new Pheanstalk($this->getOption('host'), $this->getOption('port')); |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $state |
|
46 | + */ |
|
44 | 47 | private function doClear($tubeName, $state) |
45 | 48 | { |
46 | 49 | try { |
@@ -47,6 +47,10 @@ discard block |
||
47 | 47 | return [[0], [1]]; |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param integer $queueSize |
|
52 | + * @param string $item |
|
53 | + */ |
|
50 | 54 | protected function benchmarkPush($queueSize, $item, $delay) |
51 | 55 | { |
52 | 56 | $eta = $delay ? time() + $delay : null; |
@@ -59,6 +63,10 @@ discard block |
||
59 | 63 | return microtime(true) - $start; |
60 | 64 | } |
61 | 65 | |
66 | + /** |
|
67 | + * @param integer $total |
|
68 | + * @param double $runtime |
|
69 | + */ |
|
62 | 70 | protected function printPerformanceResult($total, $runtime) |
63 | 71 | { |
64 | 72 | printf(" Total operations: %d\n", $total); |