| 1 | <?php |
||
| 12 | class SpreadsheetParser |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var SpreadsheetLoader |
||
| 16 | */ |
||
| 17 | protected static $spreadsheetLoader; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Opens a spreadsheet |
||
| 21 | * |
||
| 22 | * @param string $path |
||
| 23 | * @param string|null $type |
||
| 24 | * |
||
| 25 | * @return SpreadsheetInterface |
||
| 26 | */ |
||
| 27 | public static function open($path, $type = null) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns the spreadsheet loader |
||
| 34 | * |
||
| 35 | * @return SpreadsheetLoaderInterface |
||
| 36 | */ |
||
| 37 | public static function getSpreadsheetLoader() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Configure the loaders |
||
| 49 | */ |
||
| 50 | protected static function configureLoaders() |
||
| 57 | } |
||
| 58 |