@@ -188,11 +188,18 @@ discard block |
||
188 | 188 | $this->network_options_whitelist = $options; |
189 | 189 | } |
190 | 190 | |
191 | + /** |
|
192 | + * @param integer $size |
|
193 | + */ |
|
191 | 194 | function set_send_buffer_memory_size( $size ) { |
192 | 195 | $this->checkout_memory_size = $size; |
193 | 196 | } |
194 | 197 | |
195 | 198 | // in bytes |
199 | + |
|
200 | + /** |
|
201 | + * @param integer $limit |
|
202 | + */ |
|
196 | 203 | function set_upload_limit( $limit ) { |
197 | 204 | $this->upload_limit = $limit; |
198 | 205 | } |
@@ -434,6 +441,9 @@ discard block |
||
434 | 441 | } |
435 | 442 | } |
436 | 443 | |
444 | + /** |
|
445 | + * @param string $action_name |
|
446 | + */ |
|
437 | 447 | private function buffer_includes_action( $buffer, $action_name ) { |
438 | 448 | foreach ( $buffer->get_items() as $item ) { |
439 | 449 | if ( $item[0] === $action_name ) { |
@@ -461,6 +471,9 @@ discard block |
||
461 | 471 | return $post; |
462 | 472 | } |
463 | 473 | |
474 | + /** |
|
475 | + * @param string $when |
|
476 | + */ |
|
464 | 477 | private function schedule_sync( $when ) { |
465 | 478 | wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' ); |
466 | 479 | } |
@@ -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; |
@@ -31,6 +34,9 @@ discard block |
||
31 | 34 | public $id; |
32 | 35 | private $row_iterator; |
33 | 36 | |
37 | + /** |
|
38 | + * @param string $id |
|
39 | + */ |
|
34 | 40 | function __construct( $id ) { |
35 | 41 | $this->id = str_replace( '-', '_', $id ); // necessary to ensure we don't have ID collisions in the SQL |
36 | 42 | $this->row_iterator = 0; |
@@ -227,6 +233,9 @@ discard block |
||
227 | 233 | return true; |
228 | 234 | } |
229 | 235 | |
236 | + /** |
|
237 | + * @param integer $num_items_to_remove |
|
238 | + */ |
|
230 | 239 | function close( $buffer, $num_items_to_remove = null ) { |
231 | 240 | $is_valid = $this->validate_checkout( $buffer ); |
232 | 241 | |
@@ -308,6 +317,9 @@ discard block |
||
308 | 317 | return get_transient( $this->get_checkout_transient_name() ); |
309 | 318 | } |
310 | 319 | |
320 | + /** |
|
321 | + * @param string $checkout_id |
|
322 | + */ |
|
311 | 323 | private function set_checkout_id( $checkout_id ) { |
312 | 324 | return set_transient( $this->get_checkout_transient_name(), $checkout_id, 5*60 ); // 5 minute timeout |
313 | 325 | } |