$cache
$cache : \Psr\SimpleCache\CacheInterface
$cache : \Psr\SimpleCache\CacheInterface
$parent : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Parent worksheet.
$currentCell : \PhpOffice\PhpSpreadsheet\Cell\Cell
The currently active Cell.
$currentCoordinate : string
Coordinate of the currently active Cell.
$currentCellIsDirty : bool
Flag indicating whether the currently active Cell requires saving.
$index : bool[]
An index of existing cells. Booleans indexed by their coordinate.
$cachePrefix : string
Prefix used to uniquely identify cache data for this worksheet.
__construct(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $parent, \Psr\SimpleCache\CacheInterface $cache) : mixed
Initialise this new cell collection.
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $parent | The worksheet for this cell collection |
\Psr\SimpleCache\CacheInterface | $cache |
add(string $pCoord, \PhpOffice\PhpSpreadsheet\Cell\Cell $cell) : \PhpOffice\PhpSpreadsheet\Cell\Cell
Add or update a cell identified by its coordinate into the collection.
string | $pCoord | Coordinate of the cell to update |
\PhpOffice\PhpSpreadsheet\Cell\Cell | $cell | Cell to update |