WC_Log_Handler_File::__destruct
Destructor.
Cleans up open file handles.
Method of the class: WC_Log_Handler_File{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Log_Handler_File = new WC_Log_Handler_File(); $WC_Log_Handler_File->__destruct();
WC_Log_Handler_File::__destruct() WC Log Handler File:: destruct code WC 10.6.2
public function __destruct() {
foreach ( $this->handles as $handle ) {
if ( is_resource( $handle ) ) {
fclose( $handle ); // @codingStandardsIgnoreLine.
}
}
}