-
Notifications
You must be signed in to change notification settings - Fork 1
/
Spreadsheet.php
43 lines (34 loc) · 956 Bytes
/
Spreadsheet.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
declare(strict_types=1);
/*
* This file is part of the xezilaires project.
*
* (c) sigwin.hr
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Xezilaires;
interface Spreadsheet
{
public static function fromFile(\SplFileObject $file): self;
/**
* @param int $startRowIndex row index where this iterator starts, one-based
*/
public function createIterator(int $startRowIndex): void;
public function getIterator(): Iterator;
/**
* @param int $rowIndex row index to fetch, one-based
*
* @return array<string, null|float|int|string>
*/
public function getRow(int $rowIndex): array;
/**
* @return array<string, null|float|int|string>
*/
public function getCurrentRow(): array;
/**
* @return int row index of the last row, one-based
*/
public function getHighestRow(): int;
}