Box\Spout\Writer\AbstractWriter::close PHP Method

close() public method

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