2016-11-18 11:34:02 +00:00
|
|
|
<?php
|
2018-03-06 09:43:37 +00:00
|
|
|
/**
|
|
|
|
* Order Item Product Data Store Interface
|
|
|
|
*
|
|
|
|
* @version 3.0.0
|
|
|
|
* @package WooCommerce/Interface
|
|
|
|
*/
|
|
|
|
|
2016-11-18 11:34:02 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* WC Order Item Data Store Interface
|
|
|
|
*
|
|
|
|
* Functions that must be defined by order item store classes.
|
|
|
|
*
|
2017-03-15 16:36:53 +00:00
|
|
|
* @version 3.0.0
|
2016-11-18 11:34:02 +00:00
|
|
|
*/
|
|
|
|
interface WC_Order_Item_Product_Data_Store_Interface {
|
|
|
|
/**
|
|
|
|
* Get a list of download IDs for a specific item from an order.
|
|
|
|
*
|
2018-03-06 09:43:37 +00:00
|
|
|
* @param WC_Order_Item $item Item object.
|
|
|
|
* @param WC_Order $order Order object.
|
2016-11-18 11:34:02 +00:00
|
|
|
* @return array
|
|
|
|
*/
|
2018-03-06 09:43:37 +00:00
|
|
|
public function get_download_ids( $item, $order );
|
2016-11-18 11:34:02 +00:00
|
|
|
}
|