WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Customers

Controller::get_item() public WC 1.0

Get one report.

{} It's a method of the class: Controller{}

No Hooks.

Return

Array|WP_Error. Nothing.

Usage

$Controller = new Controller();
$Controller->get_item( $request );
$request(WP_REST_Request) (required)
Request data.

Code of Controller::get_item() WC 5.3.0

<?php
public function get_item( $request ) {
	$query_args              = $this->prepare_reports_query( $request );
	$query_args['customers'] = array( $request->get_param( 'id' ) );
	$customers_query         = new Query( $query_args );
	$report_data             = $customers_query->get_data();

	$data = array();

	foreach ( $report_data->data as $customer_data ) {
		$item   = $this->prepare_item_for_response( $customer_data, $request );
		$data[] = $this->prepare_response_for_collection( $item );
	}

	$response = rest_ensure_response( $data );
	$response->header( 'X-WP-Total', (int) $report_data->total );
	$response->header( 'X-WP-TotalPages', (int) $report_data->pages );

	return $response;
}