2018-09-17 14:32:03 +00:00
< ? php
/**
* Class for parameter - based Reports querying
*
2018-09-17 18:20:34 +00:00
* @ package WooCommerce Admin / Classes
2018-09-17 14:32:03 +00:00
*/
defined ( 'ABSPATH' ) || exit ;
/**
2018-09-17 18:20:34 +00:00
* WC_Admin_Reports_Query
2018-09-17 14:32:03 +00:00
*/
2018-09-17 18:20:34 +00:00
abstract class WC_Admin_Reports_Query extends WC_Object_Query {
2018-09-17 14:32:03 +00:00
/**
* Get report data matching the current query vars .
*
* @ return array | object of WC_Product objects
*/
public function get_data () {
/* translators: %s: Method name */
2018-09-28 15:34:33 +00:00
return new WP_Error ( 'invalid-method' , sprintf ( __ ( " Method '%s' not implemented. Must be overridden in subclass. " , 'wc-admin' ), __METHOD__ ), array ( 'status' => 405 ) );
2018-09-17 14:32:03 +00:00
}
}