WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports

TimeInterval::rest_validate_between_numeric_arg() public WC 1.0

Validate a "*_between" range argument (an array with 2 numeric items).

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

No Hooks.

Return

WP_Error|true|false. Nothing.

Usage

$result = TimeInterval::rest_validate_between_numeric_arg( $value, $request, $param );
$value(mixed) (required)
Parameter value.
$request(WP_REST_Request) (required)
REST Request.
$param(string) (required)
Parameter name.

Code of TimeInterval::rest_validate_between_numeric_arg() WC 5.2.2

<?php
public static function rest_validate_between_numeric_arg( $value, $request, $param ) {
	if ( ! wp_is_numeric_array( $value ) ) {
		return new \WP_Error(
			'rest_invalid_param',
			/* translators: 1: parameter name */
			sprintf( __( '%1$s is not a numerically indexed array.', 'woocommerce' ), $param )
		);
	}

	if (
		2 !== count( $value ) ||
		! is_numeric( $value[0] ) ||
		! is_numeric( $value[1] )
	) {
		return new \WP_Error(
			'rest_invalid_param',
			/* translators: %s: parameter name */
			sprintf( __( '%s must contain 2 numbers.', 'woocommerce' ), $param )
		);
	}

	return true;
}