# sequra/4.0.0/src/Services/Order/interface-current-order-provider.php

seQura, version 4.0.0. 32 lines.

- Page: https://pluginprobe.com/plugins/sequra/4.0.0/code/src/Services/Order/interface-current-order-provider.php
- Raw: https://pluginprobe.com/plugins/sequra/4.0.0/raw/src/Services/Order/interface-current-order-provider.php
- Modified: 2025-10-21T08:30:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sequra/4.0.0/code/src/Services/Order/interface-current-order-provider.php#L10-L20`.

```php
<?php
/**
 * Current Order Provider Interface
 *
 * @package    SeQura/WC
 * @subpackage SeQura/WC/Services
 */

namespace SeQura\WC\Services\Order;

use WC_Order;

/**
 * Store and provide the current order data
 */
interface Interface_Current_Order_Provider {

	/**
	 * Set the current order
	 * 
	 * @param WC_Order|null $order The order to set, or null to clear the current order
	 */
	public function set( ?WC_Order $order );

	/**
	 * Get the current order
	 * 
	 * @return WC_Order|null The current order, or null if none is set
	 */
	public function get(): ?WC_Order;
}

```
