public function __destruct() { if (!empty($this->temp_files)) { foreach ($this->temp_files as $temp_file) { @unlink($temp_file); } } }