| 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() |
||
| 36 | |||
| 37 | function isAnonymizable() |
||
| 41 | |||
| 42 | protected function _setIdentifier() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Returns name of entity as translatable string |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | function getEntityName() |
||
| 56 | |||
| 57 | } |
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.