IReader.php 547 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace PhpOffice\PhpSpreadsheet\Reader;
  3. interface IReader
  4. {
  5. /**
  6. * IReader constructor.
  7. */
  8. public function __construct();
  9. /**
  10. * Can the current IReader read the file?
  11. *
  12. * @param string $pFilename
  13. *
  14. * @return bool
  15. */
  16. public function canRead($pFilename);
  17. /**
  18. * Loads PhpSpreadsheet from file.
  19. *
  20. * @param string $pFilename
  21. *
  22. * @throws Exception
  23. *
  24. * @return \PhpOffice\PhpSpreadsheet\Spreadsheet
  25. */
  26. public function load($pFilename);
  27. }