Change `get_item_properties_schema` to be protected
This commit is contained in:
parent
b0b80445ab
commit
fbd377b2ec
|
@ -117,7 +117,7 @@ class Controller extends GenericStatsController {
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_item_properties_schema() {
|
protected function get_item_properties_schema() {
|
||||||
return array(
|
return array(
|
||||||
'amount' => array(
|
'amount' => array(
|
||||||
'description' => __( 'Net discount amount.', 'woocommerce' ),
|
'description' => __( 'Net discount amount.', 'woocommerce' ),
|
||||||
|
|
|
@ -117,7 +117,7 @@ class Controller extends GenericStatsController {
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_item_properties_schema() {
|
protected function get_item_properties_schema() {
|
||||||
return array(
|
return array(
|
||||||
'download_count' => array(
|
'download_count' => array(
|
||||||
'title' => __( 'Downloads', 'woocommerce' ),
|
'title' => __( 'Downloads', 'woocommerce' ),
|
||||||
|
|
|
@ -45,7 +45,7 @@ abstract class GenericStatsController extends GenericController {
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
abstract function get_item_properties_schema();
|
abstract protected function get_item_properties_schema();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Report's schema, conforming to JSON Schema.
|
* Get the Report's schema, conforming to JSON Schema.
|
||||||
|
|
|
@ -129,7 +129,7 @@ class Controller extends GenericStatsController {
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_item_properties_schema() {
|
protected function get_item_properties_schema() {
|
||||||
return array(
|
return array(
|
||||||
'items_sold' => array(
|
'items_sold' => array(
|
||||||
'title' => __( 'Products sold', 'woocommerce' ),
|
'title' => __( 'Products sold', 'woocommerce' ),
|
||||||
|
|
|
@ -138,7 +138,7 @@ class Controller extends GenericStatsController implements ExportableInterface {
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_item_properties_schema() {
|
protected function get_item_properties_schema() {
|
||||||
return array(
|
return array(
|
||||||
'total_sales' => array(
|
'total_sales' => array(
|
||||||
'description' => __( 'Total sales.', 'woocommerce' ),
|
'description' => __( 'Total sales.', 'woocommerce' ),
|
||||||
|
|
|
@ -142,7 +142,7 @@ class Controller extends GenericStatsController {
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_item_properties_schema() {
|
protected function get_item_properties_schema() {
|
||||||
return array(
|
return array(
|
||||||
'total_tax' => array(
|
'total_tax' => array(
|
||||||
'description' => __( 'Total tax.', 'woocommerce' ),
|
'description' => __( 'Total tax.', 'woocommerce' ),
|
||||||
|
|
|
@ -133,7 +133,7 @@ class Controller extends GenericStatsController {
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_item_properties_schema() {
|
protected function get_item_properties_schema() {
|
||||||
return array(
|
return array(
|
||||||
'items_sold' => array(
|
'items_sold' => array(
|
||||||
'title' => __( 'Variations Sold', 'woocommerce' ),
|
'title' => __( 'Variations Sold', 'woocommerce' ),
|
||||||
|
|
Loading…
Reference in New Issue