Resources/PhpOffice/PhpSpreadsheet/Collection/CellsFactory.php
Dennis Eichhorn 7e0153ea0f perm change
2023-03-25 22:32:11 +00: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());
}
}