WC_Log_Handler_File::__destruct()publicWC 1.0

Destructor.

Cleans up open file handles.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Log_Handler_File = new WC_Log_Handler_File();
$WC_Log_Handler_File->__destruct();

Code of WC_Log_Handler_File::__destruct() WC 6.9.4

public function __destruct() {
	foreach ( $this->handles as $handle ) {
		if ( is_resource( $handle ) ) {
			fclose( $handle ); // @codingStandardsIgnoreLine.
		}
	}
}