Change `get_item_properties_schema` to be protected

This commit is contained in:
Tomek Wytrębowicz 2023-05-02 14:22:51 +02:00
parent b0b80445ab
commit fbd377b2ec
7 changed files with 7 additions and 7 deletions

View File

@ -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' ),

View File

@ -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' ),

View File

@ -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.

View File

@ -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' ),

View File

@ -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' ),

View File

@ -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' ),

View File

@ -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' ),