You are here

function ReadableStreamBackupFile::close in Backup and Migrate 8.4

Close a file when we're done reading/writing.

Overrides BackupFileReadableInterface::close

2 calls to ReadableStreamBackupFile::close()
ReadableStreamBackupFile::__destruct in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Destructor.
WritableStreamBackupFile::close in lib/backup_migrate_core/src/File/WritableStreamBackupFile.php
Update the file time and size when the file is closed.
1 method overrides ReadableStreamBackupFile::close()
WritableStreamBackupFile::close in lib/backup_migrate_core/src/File/WritableStreamBackupFile.php
Update the file time and size when the file is closed.

File

lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php, line 101

Class

ReadableStreamBackupFile
Class ReadableStreamBackupFile.

Namespace

BackupMigrate\Core\File

Code

function close() {
  if ($this
    ->isOpen()) {
    fclose($this->handle);
    $this->handle = NULL;
  }
}