| 1 |
<?php |
| 2 |
/** |
| 3 |
* Current Order Provider Interface |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @subpackage SeQura/WC/Services |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Services\Order; |
| 10 |
|
| 11 |
use WC_Order; |
| 12 |
|
| 13 |
/** |
| 14 |
* Store and provide the current order data |
| 15 |
*/ |
| 16 |
interface Interface_Current_Order_Provider { |
| 17 |
|
| 18 |
/** |
| 19 |
* Set the current order |
| 20 |
* |
| 21 |
* @param WC_Order|null $order The order to set, or null to clear the current order |
| 22 |
*/ |
| 23 |
public function set( ?WC_Order $order ); |
| 24 |
|
| 25 |
/** |
| 26 |
* Get the current order |
| 27 |
* |
| 28 |
* @return WC_Order|null The current order, or null if none is set |
| 29 |
*/ |
| 30 |
public function get(): ?WC_Order; |
| 31 |
} |
| 32 |
|