# tablepress/3.4/libraries/vendor/PhpSpreadsheet/Collection/CellsFactory.php

TablePress – Tables in WordPress made easy, version 3.4. 21 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Collection/CellsFactory.php
- Raw: https://pluginprobe.com/plugins/tablepress/3.4/raw/libraries/vendor/PhpSpreadsheet/Collection/CellsFactory.php
- Modified: 2025-01-08T09:25:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Collection/CellsFactory.php#L10-L20`.

```php
<?php

namespace TablePress\PhpOffice\PhpSpreadsheet\Collection;

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

```
