1 | <?php |
||
10 | class IntegerNet_Anonymizer_Model_Bridge_Iterator implements \IntegerNet\Anonymizer\Implementor\CollectionIterator |
||
11 | { |
||
12 | /** |
||
13 | * @var Mage_Eav_Model_Entity_Collection_Abstract|Mage_Core_Model_Resource_Db_Collection_Abstract |
||
14 | */ |
||
15 | protected $_collection; |
||
16 | /** |
||
17 | * @var Mage_Core_Model_Resource_Iterator |
||
18 | */ |
||
19 | protected $_iterator; |
||
20 | /** |
||
21 | * @var string[] |
||
22 | */ |
||
23 | protected $_data; |
||
24 | /** |
||
25 | * @var int Iteration counter |
||
26 | */ |
||
27 | protected $_iteration; |
||
28 | /** |
||
29 | * @var int Iteration counter offset for chunking |
||
30 | */ |
||
31 | protected $_iterationOffset = 0; |
||
32 | |||
33 | public function __construct(Varien_Data_Collection_Db $collection) |
||
38 | |||
39 | /** |
||
40 | * @return Mage_Core_Model_Resource_Db_Collection_Abstract|Mage_Eav_Model_Entity_Collection_Abstract |
||
41 | */ |
||
42 | public function getCollection() |
||
46 | |||
47 | /** |
||
48 | * @param callable $callable |
||
49 | * @return mixed |
||
50 | */ |
||
51 | function walk(/*callable*/ $callable) // PHP 5.3 |
||
63 | |||
64 | public function _setRawData($data) |
||
76 | |||
77 | /** |
||
78 | * Returns raw data from database |
||
79 | * |
||
80 | * @return mixed |
||
81 | */ |
||
82 | function getRawData() |
||
86 | |||
87 | /** |
||
88 | * Returns number of iteration |
||
89 | * |
||
90 | * @return int |
||
91 | */ |
||
92 | function getIteration() |
||
96 | |||
97 | /** |
||
98 | * Returns total size of collection |
||
99 | * |
||
100 | * @return mixed |
||
101 | */ |
||
102 | function getSize() |
||
106 | |||
107 | /** |
||
108 | * Additional processing at the end: |
||
109 | * - update grid tables |
||
110 | * |
||
111 | * @return void |
||
112 | */ |
||
113 | protected function _afterWalk() |
||
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..