Lines:
1 to 35 of 35
<?php /** * Order Item * * A class which represents an item within an order and handles CRUD. * Uses ArrayAccess to be BW compatible with WC_Orders::get_items(). * * @package WooCommerce\Classes * @version 3.0.0 * @since 3.0.0 */ defined( 'ABSPATH' ) || exit; /* class WC_Order_Item */ /* function WC_Order_Item::__construct() – Constructor. */ /* function WC_Order_Item::apply_changes() – Merge changes with data and clear. */ /* function WC_Order_Item::get_order_id() – Get order ID this meta belongs to. */ /* function WC_Order_Item::get_name() – Get order item name. */ /* function WC_Order_Item::get_type() – Get order item type. Overridden by child classes. */ /* function WC_Order_Item::get_quantity() – Get quantity. */ /* function WC_Order_Item::get_tax_status() – Get tax status. */ /* function WC_Order_Item::get_tax_class() – Get tax class. */ /* function WC_Order_Item::get_order() – Get parent order object. */ /* function WC_Order_Item::set_order_id() – Set order ID. */ /* function WC_Order_Item::set_name() – Set order item name. */ /* function WC_Order_Item::is_type() – Type checking. */ /* function WC_Order_Item::calculate_taxes() – Calculate item taxes. */ /* function WC_Order_Item::get_formatted_meta_data() – Expands things like term slugs before return. */ /* function WC_Order_Item::offsetSet() – OffsetSet for ArrayAccess. */ /* function WC_Order_Item::offsetUnset() – OffsetUnset for ArrayAccess. */ /* function WC_Order_Item::offsetExists() – OffsetExists for ArrayAccess. */ /* function WC_Order_Item::offsetGet() – OffsetGet for ArrayAccess. */