WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

ReportCSVExporter::set_report_type() public WC 1.0

Setter for report type.

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

No Hooks.

Return

null. Nothing.

Usage

$ReportCSVExporter = new ReportCSVExporter();
$ReportCSVExporter->set_report_type( $type );
$type(string) (required)
The report type. E.g. customers.

Code of ReportCSVExporter::set_report_type() WC 5.3.0

<?php
public function set_report_type( $type ) {
	$this->report_type = $type;
	$this->export_type = "admin_{$type}_report";
	$this->filename    = "wc-{$type}-report-export";
	$this->controller  = $this->map_report_controller();
}