1 | <?php |
||
11 | class Excel implements IExcel |
||
12 | { |
||
13 | /** |
||
14 | * Документ |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | public $sourceFile; |
||
19 | |||
20 | /** |
||
21 | * Путь к документу |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | public $sourceFilePath; |
||
26 | |||
27 | /** |
||
28 | * Объект ридера |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | public $sourceReader; |
||
33 | |||
34 | /** |
||
35 | * excelParser constructor. |
||
36 | * |
||
37 | * @param string $file (Документ) |
||
38 | * |
||
39 | * @param string $path (Путь) |
||
40 | */ |
||
41 | 7 | public function __construct($file, $path) |
|
47 | |||
48 | /** |
||
49 | * Метод возвращает ридер для документа |
||
50 | * |
||
51 | * @return PHPExcel_Reader_IReader (Ридер документа) |
||
52 | * |
||
53 | * @throws PHPExcel_Reader_Exception (Не удалось определить тип документа) |
||
54 | */ |
||
55 | 7 | public function getReader() |
|
61 | |||
62 | /** |
||
63 | * Метод возвращает массив с распарсенными данными, отсеивая null значения |
||
64 | * |
||
65 | * @param array $objPHPExcel (Масив данных полученных с помощью toArray()) |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | 3 | public function getData(array $objPHPExcel) |
|
86 | } |
||
87 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..