Merge pull request #114 from box/remove_duplicate_method
Remove duplicated method
This commit is contained in:
commit
118810de22
@ -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.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user