1 | <?php |
||
10 | class IntegerNet_Anonymizer_Model_Bridge_Entity_Order extends IntegerNet_Anonymizer_Model_Bridge_Entity_Abstract |
||
11 | { |
||
12 | protected $_entityType = 'order'; |
||
13 | |||
14 | protected $_attributesUsedForIdentifier = array( |
||
15 | 'customer_id', 'increment_id' |
||
16 | ); |
||
17 | |||
18 | protected $_formattersByAttribute = array( |
||
19 | 'customer_email' => 'safeEmail', |
||
20 | 'customer_firstname' => 'firstName', |
||
21 | 'customer_lastname' => 'lastName', |
||
22 | 'customer_middlename' => 'firstName', |
||
23 | 'customer_prefix' => 'title', |
||
24 | 'customer_suffix' => 'suffix', |
||
25 | 'customer_taxvat' => 'randomNumber' // 'vat' provider is not implemented for most counries |
||
26 | ); |
||
27 | protected $_uniqueAttributes = array( |
||
28 | 'customer_email' |
||
29 | ); |
||
30 | |||
31 | function __construct() |
||
35 | |||
36 | protected function _setIdentifier() |
||
40 | |||
41 | /** |
||
42 | * Returns name of entity as translatable string |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | function getEntityName() |
||
50 | |||
51 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.