1 | <?php |
||
10 | class IntegerNet_Anonymizer_Model_Bridge_Entity_Customer extends IntegerNet_Anonymizer_Model_Bridge_Entity_Abstract |
||
11 | { |
||
12 | protected $_entityType = 'customer'; |
||
13 | |||
14 | protected $_formattersByAttribute = array( |
||
15 | 'email' => 'safeEmail', |
||
16 | 'firstname' => 'firstName', |
||
17 | 'lastname' => 'lastName', |
||
18 | 'middlename' => 'firstName', |
||
19 | 'prefix' => 'title', |
||
20 | 'suffix' => 'suffix', |
||
21 | 'taxvat' => 'randomNumber' // 'vat' provider is not implemented for most counries |
||
22 | ); |
||
23 | protected $_uniqueAttributes = array( |
||
24 | 'email' |
||
25 | ); |
||
26 | |||
27 | function __construct() |
||
31 | |||
32 | protected function _setIdentifier() |
||
36 | |||
37 | /** |
||
38 | * Returns name of entity as translatable string |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | function getEntityName() |
||
46 | |||
47 | |||
48 | } |
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.