@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | public $id; |
| 8 | 8 | public $items_with_ids; |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param string $id |
|
| 12 | + */ |
|
| 10 | 13 | public function __construct( $id, $items_with_ids ) { |
| 11 | 14 | $this->id = $id; |
| 12 | 15 | $this->items_with_ids = $items_with_ids; |
@@ -35,6 +38,9 @@ discard block |
||
| 35 | 38 | public $id; |
| 36 | 39 | private $row_iterator; |
| 37 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $id |
|
| 43 | + */ |
|
| 38 | 44 | function __construct( $id ) { |
| 39 | 45 | $this->id = str_replace( '-', '_', $id ); // necessary to ensure we don't have ID collisions in the SQL |
| 40 | 46 | $this->row_iterator = 0; |
@@ -130,6 +136,9 @@ discard block |
||
| 130 | 136 | } |
| 131 | 137 | } |
| 132 | 138 | |
| 139 | + /** |
|
| 140 | + * @param string $type |
|
| 141 | + */ |
|
| 133 | 142 | function add_skipped_id( $object_id, $type ) { |
| 134 | 143 | $option_name = 'jetpack_skipped_sync_' . $type . '_ids'; |
| 135 | 144 | $blacklist = get_option( $option_name, array() ); |
@@ -139,6 +148,9 @@ discard block |
||
| 139 | 148 | } |
| 140 | 149 | } |
| 141 | 150 | |
| 151 | + /** |
|
| 152 | + * @param string $type |
|
| 153 | + */ |
|
| 142 | 154 | function remove_skipped_id( $object_id, $type ) { |
| 143 | 155 | $option_name = 'jetpack_skipped_sync_' . $type . '_ids'; |
| 144 | 156 | $blacklist = get_option( $option_name, array() ); |
@@ -415,6 +427,9 @@ discard block |
||
| 415 | 427 | return get_transient( $this->get_checkout_transient_name() ); |
| 416 | 428 | } |
| 417 | 429 | |
| 430 | + /** |
|
| 431 | + * @param string $checkout_id |
|
| 432 | + */ |
|
| 418 | 433 | private function set_checkout_id( $checkout_id ) { |
| 419 | 434 | return set_transient( $this->get_checkout_transient_name(), $checkout_id, 5 * 60 ); // 5 minute timeout |
| 420 | 435 | } |