Resources/PhpOffice/PhpSpreadsheet/Collection/CellsFactory.php
2025-04-02 14:15:06 +00:00

21 lines
460 B
PHP

<?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());
}
}