@@ -9,6 +9,9 @@ discard block |
||
9 | 9 | public $id; |
10 | 10 | public $items_with_ids; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $id |
|
14 | + */ |
|
12 | 15 | public function __construct( $id, $items_with_ids ) { |
13 | 16 | $this->id = $id; |
14 | 17 | $this->items_with_ids = $items_with_ids; |
@@ -30,6 +33,10 @@ discard block |
||
30 | 33 | interface Jetpack_Sync_Lock { |
31 | 34 | public function acquire_lock( $wait = 0 ); |
32 | 35 | public function release_lock(); |
36 | + |
|
37 | + /** |
|
38 | + * @return void |
|
39 | + */ |
|
33 | 40 | public function reset(); |
34 | 41 | } |
35 | 42 | |
@@ -156,6 +163,9 @@ discard block |
||
156 | 163 | private $row_iterator; |
157 | 164 | private $lock; |
158 | 165 | |
166 | + /** |
|
167 | + * @param string $id |
|
168 | + */ |
|
159 | 169 | function __construct( $id ) { |
160 | 170 | $this->id = str_replace( '-', '_', $id ); // necessary to ensure we don't have ID collisions in the SQL |
161 | 171 | $this->row_iterator = 0; |