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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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