Automattic\WooCommerce\Internal\Admin\Logging\FileV2

FileExporter::__constructpublicWC 1.0

Class FileExporter.

Method of the class: FileExporter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$FileExporter = new FileExporter();
$FileExporter->__construct( $path, $alternate_filename );
$path(string) (required)
The absolute path of the file.
$alternate_filename(string)
The name of the file to send to the browser rather than the filename part of the path.
Default: ''

FileExporter::__construct() code WC 10.8.1

public function __construct( string $path, string $alternate_filename = '' ) {
	$this->path               = $path;
	$this->alternate_filename = $alternate_filename;
}