1 | <?php |
||
12 | abstract class IntegerNet_Anonymizer_Model_Bridge_Entity_Abstract |
||
13 | implements IntegerNet\Anonymizer\Implementor\AnonymizableEntity |
||
14 | { |
||
15 | const ROWS_PER_QUERY = 50000; |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $_identifier; |
||
20 | /** |
||
21 | * @var Mage_Core_Model_Abstract |
||
22 | */ |
||
23 | protected $_entity; |
||
24 | /** |
||
25 | * @var string|null is overridden with entity type code if the model is a EAV entity |
||
26 | */ |
||
27 | protected $_entityType = null; |
||
28 | /** |
||
29 | * @var string[] |
||
30 | */ |
||
31 | protected $_formattersByAttribute = array(); |
||
32 | /** |
||
33 | * @var string[] Specifies attributes that will be loaded |
||
34 | */ |
||
35 | protected $_attributesUsedForIdentifier = array(); |
||
36 | /** |
||
37 | * @var string[] |
||
38 | */ |
||
39 | protected $_uniqueAttributes = array(); |
||
40 | /** |
||
41 | * @var AnonymizableValue[] |
||
42 | */ |
||
43 | protected $_values; |
||
44 | /** |
||
45 | * @var int Current page of collection for chunking |
||
46 | */ |
||
47 | protected $currentPage = 0; |
||
48 | |||
49 | /** |
||
50 | * Returns identifier, for example the customer email address. Entities with the same identifier will get the same |
||
51 | * anonymized values. |
||
52 | * |
||
53 | * Important: The return value must not be affected by anonymization! |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getIdentifier() |
||
61 | |||
62 | /** |
||
63 | * Sets identifier based on current entity |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | abstract protected function _setIdentifier(); |
||
68 | |||
69 | /** |
||
70 | * @return AnonymizableValue[] |
||
71 | */ |
||
72 | public function getValues() |
||
84 | |||
85 | /** |
||
86 | * Sets raw data from database |
||
87 | * |
||
88 | * @param string[] $data |
||
89 | * @return void |
||
90 | */ |
||
91 | public function setRawData($data) |
||
98 | |||
99 | /** |
||
100 | * Update values in database |
||
101 | * |
||
102 | * @return void |
||
103 | */ |
||
104 | public function updateValues() |
||
135 | |||
136 | /** |
||
137 | * Reset to empty instance |
||
138 | * |
||
139 | * @return void |
||
140 | */ |
||
141 | public function clearInstance() |
||
148 | |||
149 | /** |
||
150 | * @return IntegerNet_Anonymizer_Model_Bridge_Iterator|null |
||
151 | */ |
||
152 | public function getCollectionIterator() |
||
176 | |||
177 | /** |
||
178 | * Check if the entity exists |
||
179 | * @return bool |
||
180 | */ |
||
181 | public function entityExists() |
||
185 | } |
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..