| 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() |
||
| 32 | |||
| 33 | function isAnonymizable() |
||
| 37 | |||
| 38 | protected function _setIdentifier() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns name of entity as translatable string |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | function getEntityName() |
||
| 52 | |||
| 53 | |||
| 54 | } |
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.