| 1 | <?php |
||
| 10 | class IntegerNet_Anonymizer_Model_Bridge_Entity_NewsletterSubscriber |
||
| 11 | extends IntegerNet_Anonymizer_Model_Bridge_Entity_Abstract |
||
| 12 | { |
||
| 13 | |||
| 14 | protected $_attributesUsedForIdentifier = array( |
||
| 15 | 'customer_id' |
||
| 16 | ); |
||
| 17 | protected $_formattersByAttribute = array( |
||
| 18 | 'subscriber_email' => 'safeEmail', |
||
| 19 | ); |
||
| 20 | |||
| 21 | function __construct() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Sets identifier based on current entity |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | protected function _setIdentifier() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns name of entity as translatable string |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | function getEntityName() |
||
| 45 | |||
| 46 | |||
| 47 | } |
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.