@@ -32,6 +32,9 @@ discard block |
||
| 32 | 32 | private $checkout_size; |
| 33 | 33 | private $row_iterator; |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $id |
|
| 37 | + */ |
|
| 35 | 38 | function __construct( $id, $checkout_size = 10 ) { |
| 36 | 39 | $this->id = str_replace( '-', '_', $id ); // necessary to ensure we don't have ID collisions in the SQL |
| 37 | 40 | $this->checkout_size = $checkout_size; |
@@ -280,6 +283,9 @@ discard block |
||
| 280 | 283 | return get_transient( $this->get_checkout_transient_name() ); |
| 281 | 284 | } |
| 282 | 285 | |
| 286 | + /** |
|
| 287 | + * @param string $checkout_id |
|
| 288 | + */ |
|
| 283 | 289 | private function set_checkout_id( $checkout_id ) { |
| 284 | 290 | return set_transient( $this->get_checkout_transient_name(), $checkout_id, 5*60 ); // 5 minute timeout |
| 285 | 291 | } |