public function close()
    {
        if (!$this->isWriterOpened) {
            return;
        }

        $this->closeWriter();

        if (is_resource($this->filePointer)) {
            $this->globalFunctionsHelper->fclose($this->filePointer);
        }

        $this->isWriterOpened = false;
    }
public function close()
    {
        if (!$this->isWriterOpened) {
            return;
        }

        $this->closeWriter();

        if (is_resource($this->filePointer)) {
            $this->globalFunctionsHelper->fclose($this->filePointer);
        }

        $this->isWriterOpened = false;
    }
public function close ( ) { if ( ! $ this -> isWriterOpened ) { return ; } $ this -> closeWriter ( ) ; if ( is_resource ( $ this -> filePointer ) ) { $ this -> globalFunctionsHelper -> fclose ( $ this -> filePointer ) ; } $ this -> isWriterOpened = false ; }
Closes the writer. This will close the streamer as well, preventing new data
to be written to the file.

@api
@return void
Closes the writer . This will close the streamer as well preventing new data to be written to the file .