1 | <?php |
||
8 | class Csv extends AbstractFile |
||
9 | { |
||
10 | use ArrayUtilsTrait; |
||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $header; |
||
16 | /** |
||
17 | * @var ShaperInterface |
||
18 | */ |
||
19 | private $shaper; |
||
20 | |||
21 | /** |
||
22 | * @param string $fileName |
||
23 | * @param string $mode |
||
24 | * @param ShaperInterface $shaper |
||
25 | */ |
||
26 | 12 | public function __construct($fileName, $mode = 'r', ShaperInterface $shaper = null) |
|
31 | |||
32 | /** |
||
33 | * @return array - hashmap of current entity |
||
34 | * @throws ParsingException |
||
35 | */ |
||
36 | 7 | public function get() |
|
69 | |||
70 | /** |
||
71 | * add row to input resource |
||
72 | * @param array $entity |
||
73 | * @return void |
||
74 | */ |
||
75 | 5 | public function add(array $entity) |
|
91 | |||
92 | /** |
||
93 | * reset internal counter |
||
94 | * @return mixed |
||
95 | */ |
||
96 | 5 | public function reset() |
|
104 | |||
105 | /** |
||
106 | * @return ShaperInterface |
||
107 | */ |
||
108 | 12 | public function getShaper() |
|
112 | |||
113 | /** |
||
114 | * @param ShaperInterface $shaper |
||
115 | */ |
||
116 | public function setShaper($shaper) |
||
120 | } |
||
121 |
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..