WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports

DataStore::get_match_operator() protected WC 1.0

Returns logic operator for WHERE subclause based on 'match' query argument.

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

No Hooks.

Return

String. Nothing.

Usage

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

Code of DataStore::get_match_operator() WC 5.3.0

<?php
protected function get_match_operator( $query_args ) {
	$operator = 'AND';

	if ( ! isset( $query_args['match'] ) ) {
		return $operator;
	}

	if ( 'all' === strtolower( $query_args['match'] ) ) {
		$operator = 'AND';
	} elseif ( 'any' === strtolower( $query_args['match'] ) ) {
		$operator = 'OR';
	}
	return $operator;
}