@@ -107,6 +107,9 @@ |
||
107 | 107 | $this->enqueue_action( current_filter(), func_get_args(), $this->sync_queue ); |
108 | 108 | } |
109 | 109 | |
110 | + /** |
|
111 | + * @param Jetpack_Sync_Queue $queue |
|
112 | + */ |
|
110 | 113 | function enqueue_action( $current_filter, $args, $queue ) { |
111 | 114 | |
112 | 115 | /** |
@@ -250,6 +250,9 @@ discard block |
||
250 | 250 | return true; |
251 | 251 | } |
252 | 252 | |
253 | + /** |
|
254 | + * @param Jetpack_Sync_Queue_Buffer $buffer |
|
255 | + */ |
|
253 | 256 | function close( $buffer, $ids_to_remove = null ) { |
254 | 257 | $is_valid = $this->validate_checkout( $buffer ); |
255 | 258 | |
@@ -328,6 +331,9 @@ discard block |
||
328 | 331 | return get_transient( $this->get_checkout_transient_name() ); |
329 | 332 | } |
330 | 333 | |
334 | + /** |
|
335 | + * @param string $checkout_id |
|
336 | + */ |
|
331 | 337 | private function set_checkout_id( $checkout_id ) { |
332 | 338 | return set_transient( $this->get_checkout_transient_name(), $checkout_id, 5 * 60 ); // 5 minute timeout |
333 | 339 | } |