1 | <?php |
||
13 | class AutoScan { |
||
14 | use \PHPDaemon\Traits\ClassWatchdog; |
||
15 | use \PHPDaemon\Traits\StaticObjectWatchdog; |
||
16 | |||
17 | protected $conn; |
||
18 | |||
19 | protected $cmd; |
||
20 | |||
21 | protected $cursor = 0; |
||
22 | |||
23 | protected $args; |
||
24 | |||
25 | protected $limit = false; |
||
26 | |||
27 | protected $num = 0; |
||
28 | |||
29 | protected $isFreeze = false; |
||
30 | |||
31 | protected $cb; |
||
32 | |||
33 | protected $cbEnd; |
||
34 | |||
35 | /** |
||
36 | * Constructor |
||
37 | * @param Pool $pool Redis pool or connection |
||
38 | * @param string $cmd Command |
||
39 | * @param array $args Arguments |
||
40 | * @param cllable $cbEnd Callback |
||
|
|||
41 | * @param integer $limit Limit |
||
42 | */ |
||
43 | public function __construct($pool, $cmd, $args = [], $cbEnd = null, $limit = false) { |
||
67 | |||
68 | public function freeze() { |
||
71 | |||
72 | public function run() { |
||
76 | |||
77 | public function reset() { |
||
81 | |||
82 | protected function doIteration() { |
||
102 | } |
||
103 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.