File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,8 @@ The configured property will be used via its implemented getter/setter methods b
196
196
}
197
197
}
198
198
199
- It is also possible to use public properties to be used by the marking
200
- store. The above class would become the following::
199
+ It is also possible to use public properties for the marking store. The above
200
+ class would become the following::
201
201
202
202
// src/Entity/BlogPost.php
203
203
namespace App\Entity;
@@ -210,8 +210,8 @@ store. The above class would become the following::
210
210
public string $content;
211
211
}
212
212
213
- When using public properties, context is not supported. In order
214
- to support it, you must declare a setter to write your property::
213
+ When using public properties, context is not supported. In order to support it,
214
+ you must declare a setter to write your property::
215
215
216
216
// src/Entity/BlogPost.php
217
217
namespace App\Entity;
@@ -223,13 +223,13 @@ to support it, you must declare a setter to write your property::
223
223
224
224
public function setCurrentPlace(string $currentPlace, array $context = []): void
225
225
{
226
- // Assign the property and so something with `$ context`
226
+ // assign the property and do something with the context
227
227
}
228
228
}
229
229
230
230
.. versionadded :: 6.4
231
231
232
- The support of using public properties instead of getter/setter methods
232
+ The feature to use public properties instead of getter/setter methods
233
233
and private properties was introduced in Symfony 6.4.
234
234
235
235
.. note ::
You can’t perform that action at this time.
0 commit comments