Skip to content

Commit 21ad6fb

Browse files
author
Jelle van Oosterbosch
committed
Changed protected to private in doc for best practices
1 parent a3dbccf commit 21ad6fb

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

Resources/doc/anonymizer.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ use Superbrave\GdprBundle\Annotation as GDPR;
5656
*
5757
* @GDPR\Anonymize(type="fixed", value="anonymized")
5858
*/
59-
protected $value;
59+
private $value;
6060
```
6161

6262
##### Advanced fixed value
@@ -78,7 +78,7 @@ use Superbrave\GdprBundle\Annotation as GDPR;
7878
*
7979
* @GDPR\Anonymize(type="fixed", value="firstName-{id}")
8080
*/
81-
protected $firstName;
81+
private $firstName;
8282
```
8383

8484
#### Type: dateTime
@@ -95,7 +95,7 @@ use Superbrave\GdprBundle\Annotation as GDPR;
9595
*
9696
* @GDPR\Anonymize(type="dateTime")
9797
*/
98-
protected $createdAt;
98+
private $createdAt;
9999
```
100100

101101
#### Type: ip
@@ -112,7 +112,7 @@ use Superbrave\GdprBundle\Annotation as GDPR;
112112
*
113113
* @GDPR\Anonymize(type="ip")
114114
*/
115-
protected $ipAddress;
115+
private $ipAddress;
116116
```
117117

118118
#### Type: null
@@ -129,7 +129,7 @@ use Superbrave\GdprBundle\Annotation as GDPR;
129129
*
130130
* @GDPR\Anonymize(type="null")
131131
*/
132-
protected $city;
132+
private $city;
133133
```
134134

135135
#### Type: object
@@ -148,7 +148,7 @@ class Order
148148
*
149149
* @GDPR\Anonymize(type="ip")
150150
*/
151-
protected $ipAddress;
151+
private $ipAddress;
152152
}
153153
```
154154

@@ -162,7 +162,7 @@ use Superbrave\GdprBundle\Annotation as GDPR;
162162
*
163163
* @GDPR\Anonymize(type="object")
164164
*/
165-
protected $order;
165+
private $order;
166166
```
167167

168168
#### Type: collection
@@ -181,7 +181,7 @@ class Order
181181
*
182182
* @GDPR\Anonymize(type="ip")
183183
*/
184-
protected $ipAddress;
184+
private $ipAddress;
185185
}
186186
```
187187

@@ -195,5 +195,5 @@ use Superbrave\GdprBundle\Annotation as GDPR;
195195
*
196196
* @GDPR\Anonymize(type="collection")
197197
*/
198-
protected $orders;
198+
private $orders;
199199
```

Resources/doc/exporter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,28 @@ class Order
5757
*
5858
* @GDPR\Export()
5959
*/
60-
protected $id;
60+
private $id;
6161

6262
/**
6363
* @var Product
6464
*
6565
* @GDPR\Export()
6666
*/
67-
protected $product;
67+
private $product;
6868
}
6969

7070
class Product
7171
{
7272
/**
7373
* @var int
7474
*/
75-
protected $id;
75+
private $id;
7676

7777
/**
7878
* @var int
7979
*
8080
* @GDPR\Export()
8181
*/
82-
protected $name;
82+
private $name;
8383
}
8484
```

0 commit comments

Comments
 (0)