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