# Anonymizer Provides an annotation for anonymizing objects based on specific anonymization types. Specific anonymization types can be created and registered with the compiler pass. ## Anonymization types - fixed - dateTime - ip - object - collection - null ## Registering new anonymizers You can create your own anonymizers and add them to the compiler pass by tagging the service. The `type` parameter specifies the name to be used in the `type` parameter of the annotation. ```yml your_bundle_name.your_anonymizer: class: Your\Class\To\Your\Anonymizer tags: - { name: superbrave_gdpr.anonymizer, type: your_type } ``` The example above will add an anonymizer with the name `your_type`. You can then use it as followed: ```@GDPR\Anonymize(type="your_type")``` ## Usage You can anonymize objects by using the anonymizer service: ```php get('superbrave_gdpr.anonymizer')->anonymize($object); ``` ## Examples #### Type: fixed Anonymizes the property with a fixed value. ##### Simple fixed value Setting a fixed value for the property. ```php