WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Categories

Controller::prepare_reports_query() protected WC 1.0

Maps query arguments from the REST request.

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

No Hooks.

Return

Array. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_reports_query( $request );
$request(array) (required)
Request array.

Code of Controller::prepare_reports_query() WC 5.2.2

<?php
protected function prepare_reports_query( $request ) {
	$args                      = array();
	$args['before']            = $request['before'];
	$args['after']             = $request['after'];
	$args['interval']          = $request['interval'];
	$args['page']              = $request['page'];
	$args['per_page']          = $request['per_page'];
	$args['orderby']           = $request['orderby'];
	$args['order']             = $request['order'];
	$args['extended_info']     = $request['extended_info'];
	$args['category_includes'] = (array) $request['categories'];
	$args['status_is']         = (array) $request['status_is'];
	$args['status_is_not']     = (array) $request['status_is_not'];

	return $args;
}