@@ -30,6 +30,9 @@ discard block |
||
30 | 30 | public $id; |
31 | 31 | private $checkout_size; |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $id |
|
35 | + */ |
|
33 | 36 | function __construct( $id, $checkout_size = 10 ) { |
34 | 37 | $this->id = str_replace( '-', '_', $id); // necessary to ensure we don't have ID collisions in the SQL |
35 | 38 | $this->checkout_size = $checkout_size; |
@@ -127,6 +130,9 @@ discard block |
||
127 | 130 | return get_option( "jetpack_sync_queue_{$this->id}-checkout", false ); |
128 | 131 | } |
129 | 132 | |
133 | + /** |
|
134 | + * @param string $checkout_id |
|
135 | + */ |
|
130 | 136 | private function set_checkout_id( $checkout_id ) { |
131 | 137 | return add_option( "jetpack_sync_queue_{$this->id}-checkout", $checkout_id, null, true ); // this one we should autoload |
132 | 138 | } |
@@ -145,6 +151,9 @@ discard block |
||
145 | 151 | return 'jetpack_sync_queue_'.$this->id.'-'.$timestamp.'-'.getmypid(); |
146 | 152 | } |
147 | 153 | |
154 | + /** |
|
155 | + * @param integer $limit |
|
156 | + */ |
|
148 | 157 | private function fetch_items( $limit = null ) { |
149 | 158 | global $wpdb; |
150 | 159 |