Remove duplicated method

This commit is contained in:
Adrien Loison 2015-09-04 11:37:44 -07:00
parent 6124528161
commit 3720c9ea1c

View File

@ -27,9 +27,6 @@ class Writer extends AbstractMultiSheetsWriter
/** @var bool Whether inline or shared strings should be used - inline string is more memory efficient */ /** @var bool Whether inline or shared strings should be used - inline string is more memory efficient */
protected $shouldUseInlineStrings = true; protected $shouldUseInlineStrings = true;
/** @var bool Whether new sheets should be automatically created when the max rows limit per sheet is reached */
protected $shouldCreateNewSheetsAutomatically = true;
/** @var Internal\Workbook The workbook for the XLSX file */ /** @var Internal\Workbook The workbook for the XLSX file */
protected $book; protected $book;
@ -65,22 +62,6 @@ class Writer extends AbstractMultiSheetsWriter
return $this; return $this;
} }
/**
* Sets whether new sheets should be automatically created when the max rows limit per sheet is reached.
* This must be set before opening the writer.
*
* @param bool $shouldCreateNewSheetsAutomatically Whether new sheets should be automatically created when the max rows limit per sheet is reached
* @return Writer
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
*/
public function setShouldCreateNewSheetsAutomatically($shouldCreateNewSheetsAutomatically)
{
$this->throwIfWriterAlreadyOpened('Writer must be configured before opening it.');
$this->shouldCreateNewSheetsAutomatically = $shouldCreateNewSheetsAutomatically;
return $this;
}
/** /**
* Configures the write and sets the current sheet pointer to a new sheet. * Configures the write and sets the current sheet pointer to a new sheet.
* *