base ] = array( array( array( $this, 'getReports' ), WC_API_Server::READABLE ), ); # GET /reports/sales $routes[ $this->base . '/sales'] = array( array( array( $this, 'getSalesReport' ), WC_API_Server::READABLE ), ); return $routes; } /** * Get a simple listing of available reports * * @since 2.1 * @return array */ public function getReports() { return array( 'reports' => array( 'sales' ) ); } /** * Get the sales report * * @since 2.1 * @return array */ public function getSalesReport() { // TODO: implement - DRY by abstracting the report classes? return array(); } }