Move entities and managers back to Common (#431)

This commit is contained in:
Adrien Loison authored and GitHub committed 2017-05-29 23:28:10 +02:00
1 parent 878c4a9c8b
commit c4e25a168e
32 files changed
+79 -80

No files matched your search

@@ -0,0 +1,34 @@
<?php
namespace Box\Spout\Writer\Common\Creator;
use Box\Spout\Writer\Common\Sheet;
use Box\Spout\Writer\Common\Entity\Workbook;
use Box\Spout\Writer\Common\Entity\Worksheet;
/**
* Class EntityFactory
* Factory to create entities
*
* @package Box\Spout\Writer\Common\Creator
*/
class EntityFactory
{
/**
* @return Workbook
*/
public function createWorkbook()
{
return new Workbook();
}
/**
* @param string $worksheetFilePath
* @param Sheet $externalSheet
* @return Worksheet
*/
public function createWorksheet($worksheetFilePath, Sheet $externalSheet)
{
return new Worksheet($worksheetFilePath, $externalSheet);
}
}