Automattic\WooCommerce\Admin\API\Reports

Segmenter::get_segments()protectedWC 1.0

Return array of segments formatted for REST response.

Method of the class: Segmenter{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_segments( $type, $query_params, $table_name );
$type(string) (required)
Type of segments to return--'totals' or 'intervals'.
$query_params(array) (required)
SQL query parameter array.
$table_name(string) (required)
Name of main SQL table for the data store (used as basis for JOINS).

Segmenter::get_segments() code WC 9.3.3

protected function get_segments( $type, $query_params, $table_name ) {
	return array();
}