PHP Interface WC_Customer_Data_Store_Interface

Functions that must be defined by customer store classes.
Author: WooThemes
Show file Open project: woocommerce/woocommerce

Public Methods

Method Description
get_last_order ( &$customer ) : WC_Order | false Gets the customers last order.
get_order_count ( &$customer ) : integer Return the number of orders this customer has.
get_total_spent ( &$customer ) : float Return how much money this customer has spent.

Method Details

get_last_order() public method

Gets the customers last order.
public get_last_order ( &$customer ) : WC_Order | false
return WC_Order | false

get_order_count() public method

Return the number of orders this customer has.
public get_order_count ( &$customer ) : integer
return integer

get_total_spent() public method

Return how much money this customer has spent.
public get_total_spent ( &$customer ) : float
return float