| 1 |
<?php |
| 2 |
|
| 3 |
namespace TablePress\PhpOffice\PhpSpreadsheet\Collection; |
| 4 |
|
| 5 |
use TablePress\PhpOffice\PhpSpreadsheet\Settings; |
| 6 |
use TablePress\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; |
| 7 |
|
| 8 |
abstract class CellsFactory |
| 9 |
{ |
| 10 |
/** |
| 11 |
* Initialise the cache storage. |
| 12 |
* |
| 13 |
* @param Worksheet $worksheet Enable cell caching for this worksheet |
| 14 |
* |
| 15 |
* */ |
| 16 |
public static function getInstance(Worksheet $worksheet): Cells |
| 17 |
{ |
| 18 |
return new Cells($worksheet, Settings::getCache()); |
| 19 |
} |
| 20 |
} |
| 21 |
|