CellsFactory.php 497 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace PhpOffice\PhpSpreadsheet\Collection;
  3. use PhpOffice\PhpSpreadsheet\Settings;
  4. use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
  5. abstract class CellsFactory
  6. {
  7. /**
  8. * Initialise the cache storage.
  9. *
  10. * @param Worksheet $parent Enable cell caching for this worksheet
  11. *
  12. * @return Cells
  13. * */
  14. public static function getInstance(Worksheet $parent)
  15. {
  16. $instance = new Cells($parent, Settings::getCache());
  17. return $instance;
  18. }
  19. }