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:
Fredrik Forsmo 2016-01-05 12:28:49 +01:00
parent e07185ec1f
commit 0b62c624fa
1 changed files with 17 additions and 1 deletions

View File

@ -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 ) ) {