@@ -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; |
@@ -38,6 +41,9 @@ discard block |
||
| 38 | 41 | private $row_iterator; |
| 39 | 42 | private $use_named_lock; |
| 40 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $id |
|
| 46 | + */ |
|
| 41 | 47 | function __construct( $id ) { |
| 42 | 48 | $this->id = str_replace( '-', '_', $id ); // necessary to ensure we don't have ID collisions in the SQL |
| 43 | 49 | $this->row_iterator = 0; |
@@ -295,6 +301,9 @@ discard block |
||
| 295 | 301 | $this->delete_checkout_id(); |
| 296 | 302 | } |
| 297 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $buffer_id |
|
| 306 | + */ |
|
| 298 | 307 | private function acquire_lock( $buffer_id ) { |
| 299 | 308 | if ( $this->use_named_lock ) { |
| 300 | 309 | // use mysql |