| 1 |
<?php |
| 2 |
|
| 3 |
namespace TablePress\PhpOffice\PhpSpreadsheet\Reader; |
| 4 |
|
| 5 |
/** |
| 6 |
* Empty listWorksheetInfo and listWorksheetNames methods, |
| 7 |
* facilitating migration from IReader to IReader2. |
| 8 |
*/ |
| 9 |
class EmptyWorksheetInfo |
| 10 |
{ |
| 11 |
/** |
| 12 |
* Return empty array as worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns). |
| 13 |
* |
| 14 |
* @return array<int, array{worksheetName: string, lastColumnLetter: string, lastColumnIndex: int, totalRows: int, totalColumns: int, sheetState: string}> |
| 15 |
*/ |
| 16 |
public function listWorksheetInfo(string $filename): array |
| 17 |
{ |
| 18 |
return []; |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* Return empty array as names of the worksheets from a file, |
| 23 |
* possibly without parsing the whole file to a Spreadsheet object. |
| 24 |
* |
| 25 |
* @return string[] |
| 26 |
*/ |
| 27 |
public function listWorksheetNames(string $filename): array |
| 28 |
{ |
| 29 |
return []; |
| 30 |
} |
| 31 |
} |
| 32 |
|