<?php

namespace RawTypeOE\Vendor\PhpOffice\PhpSpreadsheet\Collection;

use RawTypeOE\Vendor\PhpOffice\PhpSpreadsheet\Settings;
use RawTypeOE\Vendor\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());
    }
}
