2023-11-09 14:09:52 +08:00

21 lines
460 B
PHP
Executable File

<?php
namespace PhpOffice\PhpSpreadsheet\Collection;
use PhpOffice\PhpSpreadsheet\Settings;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
abstract class CellsFactory
{
/**
* Initialise the cache storage.
*
* @param Worksheet $worksheet Enable cell caching for this worksheet
*
* */
public static function getInstance(Worksheet $worksheet): Cells
{
return new Cells($worksheet, Settings::getCache());
}
}