WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports

DataStore::get_limit_sql_params() protected WC 1.0

Fills LIMIT clause of SQL request based on user supplied parameters.

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

No Hooks.

Return

Array. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_limit_sql_params( $query_args );
$query_args(array) (required)
Parameters supplied by the user.

Code of DataStore::get_limit_sql_params() WC 5.3.0

<?php
protected function get_limit_sql_params( $query_args ) {
	$params = $this->get_limit_params( $query_args );

	$this->clear_sql_clause( 'limit' );
	$this->add_sql_clause( 'limit', "LIMIT {$params['offset']}, {$params['per_page']}" );
	return $params;
}