Skip to content

Commit d6f7f4f

Browse files
author
Jelle van Oosterbosch
committed
Added @var doc for available types per anonymizer
1 parent e9f9e96 commit d6f7f4f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Resources/doc/anonymizer.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Setting a fixed value for the property.
4848
use SuperBrave\GdprBundle\Annotation as GDPR;
4949

5050
/**
51+
* @var string
52+
*
5153
* @GDPR\Anonymize(type="fixed", value="anonymized")
5254
*/
5355
protected $value;
@@ -68,6 +70,8 @@ If the checks above both failed it resorts back to a ReflectionProperty
6870
use SuperBrave\GdprBundle\Annotation as GDPR;
6971

7072
/**
73+
* @var string
74+
*
7175
* @GDPR\Anonymize(type="fixed", value="firstName-{id}")
7276
*/
7377
protected $firstName;
@@ -83,6 +87,8 @@ Anonymizes the date time field by setting the month and day to 01 and hours, min
8387
use SuperBrave\GdprBundle\Annotation as GDPR;
8488

8589
/**
90+
* @var \DateTimeInterface|string|int
91+
*
8692
* @GDPR\Anonymize(type="dateTime")
8793
*/
8894
protected $createdAt;
@@ -98,6 +104,8 @@ Anonymizes the ip address by zeroing the last bytes of an ipv4 or ipv6 address.
98104
use SuperBrave\GdprBundle\Annotation as GDPR;
99105

100106
/**
107+
* @var string
108+
*
101109
* @GDPR\Anonymize(type="ip")
102110
*/
103111
protected $ipAddress;
@@ -113,6 +121,8 @@ Anonymizes the property by setting it to null.
113121
use SuperBrave\GdprBundle\Annotation as GDPR;
114122

115123
/**
124+
* @var mixed
125+
*
116126
* @GDPR\Anonymize(type="null")
117127
*/
118128
protected $city;

0 commit comments

Comments
 (0)