Automattic\WooCommerce\Internal\Admin

Analytics::is_running_state_of │ private static │ WC 1.0

Whether the tool state belongs to the given run and that run is still running.

Method of the class: Analytics{}

No Hooks.

Returns

bool.

Usage

$result = Analytics::is_running_state_of( $state, $run_id ): bool;
$state(array) (required)
Tool state from get_refund_double_count_state().
$run_id(string) (required)
Run ID passed to a batch.

Analytics::is_running_state_of() code WC 11.3.0

private static function is_running_state_of( array $state, string $run_id ): bool {
	return '' !== $run_id && $run_id === $state['run_id'] && self::REFUND_DOUBLE_COUNT_STATUS_RUNNING === $state['status'];
}