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