WC_Log_Handler_File::__destruct() public WC 1.0
Destructor.
Cleans up open file handles.
{} Это метод класса: WC_Log_Handler_File{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Log_Handler_File = new WC_Log_Handler_File(); $WC_Log_Handler_File->__destruct();
Код WC_Log_Handler_File::__destruct() WC Log Handler File:: destruct WC 5.0.0
public function __destruct() {
foreach ( $this->handles as $handle ) {
if ( is_resource( $handle ) ) {
fclose( $handle ); // @codingStandardsIgnoreLine.
}
}
}