Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class Xls implements XlsFileInterface |
||
19 | { |
||
20 | /** @var XlsLibrary $concretion */ |
||
21 | private $concretion; |
||
22 | |||
23 | /** |
||
24 | * Xls constructor. |
||
25 | * |
||
26 | * @param XlsLibrary $concretion |
||
27 | */ |
||
28 | public function __construct( |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @inheritDoc |
||
36 | */ |
||
37 | public function fetchData(string $fileName): Iterator |
||
38 | { |
||
39 | $sheet = $this->concretion->load($fileName); |
||
40 | |||
41 | return $sheet->getActiveSheet()->getRowIterator(); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @inheritDoc |
||
46 | */ |
||
47 | public function asArray($object) |
||
50 | } |
||
51 | } |
||
52 |