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 | * @var \IntegerNet\Anonymizer\Config\ExcludedEmailDomains |
||
50 | */ |
||
51 | protected $excludedEmailDomains; |
||
52 | |||
53 | public function __construct() |
||
57 | |||
58 | /** |
||
59 | * Returns true if entity is anonymizable, false if it should be left unchanged |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | function isAnonymizable() |
||
67 | |||
68 | /** |
||
69 | * Returns identifier, for example the customer email address. Entities with the same identifier will get the same |
||
70 | * anonymized values. |
||
71 | * |
||
72 | * Important: The return value must not be affected by anonymization! |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getIdentifier() |
||
80 | |||
81 | /** |
||
82 | * Sets identifier based on current entity |
||
83 | * |
||
84 | * @return void |
||
85 | */ |
||
86 | abstract protected function _setIdentifier(); |
||
87 | |||
88 | /** |
||
89 | * @return AnonymizableValue[] |
||
90 | */ |
||
91 | public function getValues() |
||
103 | |||
104 | /** |
||
105 | * Sets raw data from database |
||
106 | * |
||
107 | * @param string[] $data |
||
108 | * @return void |
||
109 | */ |
||
110 | public function setRawData($data) |
||
117 | |||
118 | /** |
||
119 | * Update values in database |
||
120 | * |
||
121 | * @return void |
||
122 | */ |
||
123 | public function updateValues() |
||
154 | |||
155 | /** |
||
156 | * Reset to empty instance |
||
157 | * |
||
158 | * @return void |
||
159 | */ |
||
160 | public function clearInstance() |
||
167 | |||
168 | /** |
||
169 | * @return IntegerNet_Anonymizer_Model_Bridge_Iterator|null |
||
170 | */ |
||
171 | public function getCollectionIterator() |
||
195 | |||
196 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.