mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-07 10:04:03 +00:00
25 lines
645 B
PHP
25 lines
645 B
PHP
<?php
|
|
/**
|
|
* Subscription Line Item (product) Switched
|
|
*
|
|
* Line items which have been switched by a customer have the line_item_switched line item type. This class extends WC_Order_Item_Product to implement this line item type.
|
|
*
|
|
* @author Prospress
|
|
* @category Class
|
|
* @package WooCommerce Subscriptions
|
|
* @since 1.0.0 - Migrated from WooCommerce Subscriptions v2.6.0
|
|
*/
|
|
|
|
class WC_Subscription_Line_Item_Switched extends WC_Order_Item_Product {
|
|
|
|
/**
|
|
* Get item type.
|
|
*
|
|
* @return string
|
|
* @since 1.0.0 - Migrated from WooCommerce Subscriptions v2.6.0
|
|
*/
|
|
public function get_type() {
|
|
return 'line_item_switched';
|
|
}
|
|
}
|