This commit is contained in:
parent
171a2fab10
commit
2c2c23a8ca
@ -25,6 +25,31 @@ class WriterEntityFactory
|
||||
return (new WriterFactory())->create($writerType);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Box\Spout\Writer\CSV\Writer
|
||||
*/
|
||||
public static function createCSVWriter()
|
||||
{
|
||||
return (new WriterFactory())->getCSVWriter();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Box\Spout\Writer\XLSX\Writer
|
||||
*/
|
||||
public static function createXLSXWriter()
|
||||
{
|
||||
return (new WriterFactory())->getXLSXWriter();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Box\Spout\Writer\ODS\Writer
|
||||
*/
|
||||
public static function createODSWriter()
|
||||
{
|
||||
return (new WriterFactory())->getODSWriter();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param Cell[] $cells
|
||||
* @param Style|null $rowStyle
|
||||
|
@ -47,7 +47,7 @@ class WriterFactory
|
||||
/**
|
||||
* @return CSVWriter
|
||||
*/
|
||||
private function getCSVWriter()
|
||||
public function getCSVWriter()
|
||||
{
|
||||
$optionsManager = new CSVOptionsManager();
|
||||
$globalFunctionsHelper = new GlobalFunctionsHelper();
|
||||
@ -60,7 +60,7 @@ class WriterFactory
|
||||
/**
|
||||
* @return XLSXWriter
|
||||
*/
|
||||
private function getXLSXWriter()
|
||||
public function getXLSXWriter()
|
||||
{
|
||||
$styleBuilder = new StyleBuilder();
|
||||
$optionsManager = new XLSXOptionsManager($styleBuilder);
|
||||
@ -75,7 +75,7 @@ class WriterFactory
|
||||
/**
|
||||
* @return ODSWriter
|
||||
*/
|
||||
private function getODSWriter()
|
||||
public function getODSWriter()
|
||||
{
|
||||
$styleBuilder = new StyleBuilder();
|
||||
$optionsManager = new ODSOptionsManager($styleBuilder);
|
||||
|
Loading…
x
Reference in New Issue
Block a user