Improve docblock comments in WC_Report_Sales_By_Date class
* Added comments to properties that don’t have any. * Fixed return tag value for `get_report_data`
This commit is contained in:
parent
e07185ec1f
commit
0b62c624fa
|
@ -1,4 +1,9 @@
|
|||
<?php
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
/**
|
||||
* WC_Report_Sales_By_Date
|
||||
*
|
||||
|
@ -9,12 +14,23 @@
|
|||
*/
|
||||
class WC_Report_Sales_By_Date extends WC_Admin_Report {
|
||||
|
||||
/**
|
||||
* Chart colours.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $chart_colours = array();
|
||||
|
||||
/**
|
||||
* The report data.
|
||||
*
|
||||
* @var stdClass
|
||||
*/
|
||||
private $report_data;
|
||||
|
||||
/**
|
||||
* Get report data.
|
||||
* @return array
|
||||
* @return stdClass
|
||||
*/
|
||||
public function get_report_data() {
|
||||
if ( empty( $this->report_data ) ) {
|
||||
|
|
Loading…
Reference in New Issue