You are here

public function CSVFIReader::__destruct in Feed Import 8

Destructor.

Overrides FeedImportReader::__destruct

File

feed_import_base/src/CSVFIReader.php, line 92

Class

CSVFIReader
CSV Reader class, used to read csv files.

Namespace

Drupal\feed_import_base

Code

public function __destruct() {

  // Close file handle if any.
  if ($this->fh) {
    try {
      fclose($this->fh);
    } catch (Exception $e) {
    }
  }
}