public function finish()
    {
        $writer = $this->writer;
        if (!$writer) {
            $writer = PHPExcel_IOFactory::createWriter($this->excel, $this->format);
        }
        $writer->save($this->filename);
    }
public function finish()
    {
        $writer = $this->writer;
        if (!$writer) {
            $writer = PHPExcel_IOFactory::createWriter($this->excel, $this->format);
        }
        $writer->save($this->filename);
    }
public function finish ( ) { $ writer = $ this -> writer ; if ( ! $ writer ) { $ writer = PHPExcel_IOFactory :: createWriter ( $ this -> excel , $ this -> format ) ; } $ writer -> save ( $ this -> filename ) ; }
Finish the writer.
Finish the writer .