StatInterface
- Type
- Interface
- Namespace
- craft\commerce\base
- Implemented by
- craft\commerce\base\Stat, craft\commerce\stats\AverageOrderTotal, craft\commerce\stats\NewCustomers, craft\commerce\stats\RepeatCustomers, craft\commerce\stats\TopCustomers, craft\commerce\stats\TopProductTypes, craft\commerce\stats\TopProducts, craft\commerce\stats\TopPurchasables, craft\commerce\stats\TotalOrders, craft\commerce\stats\TotalOrdersByCountry, craft\commerce\stats\TotalRevenue
- Since
- 3.0
Stat Interface
View source (opens new window)
# Public Methods
Method | Description |
---|---|
get() | |
getData() | |
getDateRangeWording() | |
getEndDate() | |
getHandle() | |
getStartDate() | |
prepareData() | |
setEndDate() | |
setStartDate() |
# get()
View source (opens new window)
Returns
mixed
# getData()
View source (opens new window)
Returns
array (opens new window), null (opens new window), false (opens new window)
# getDateRangeWording()
View source (opens new window)
Returns
# getEndDate()
View source (opens new window)
Returns
mixed
# getHandle()
View source (opens new window)
Returns
# getStartDate()
View source (opens new window)
Returns
mixed
# prepareData()
View source (opens new window)
Arguments
$data
Returns
mixed
# setEndDate()
View source (opens new window)
Arguments
Returns
mixed
# setStartDate()
View source (opens new window)
Arguments
Returns
mixed