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 @@ -325,7 +325,7 @@ Writing to Array Properties
325
325
~~~~~~~~~~~~~~~~~~~~~~~~~~~
326
326
327
327
The ``PropertyAccessor `` class allows to update the content of arrays stored in
328
- properties through ` adder ` and ` remover ` methods.
328
+ properties through * adder * and * remover * methods.
329
329
330
330
.. code-block :: php
331
331
@@ -358,13 +358,13 @@ properties through `adder` and `remover` methods.
358
358
359
359
var_dump($person->getChildren()); // array('kevin', 'wouter')
360
360
361
- The PropertyAccess component will check for methods called `add<SingularOfThePropertyName> `
362
- and `remove<SingularOfThePropertyName> ` . Both methods must be present .
363
- For instance, in the previous example, the component looks for `addChild ` and
364
- `removeChild ` methods to access to the `children ` property.
361
+ The PropertyAccess component checks for methods called `` add<SingularOfThePropertyName>() ` `
362
+ and `` remove<SingularOfThePropertyName>() `` . Both methods must be defined .
363
+ For instance, in the previous example, the component looks for `` addChild() ` ` and
364
+ `` removeChild() `` methods to access to the `` children ` ` property.
365
365
`The Inflector component `_ is used to find the singular of a property name.
366
366
367
- If available, ` adder ` and ` remover ` methods have priority over a setter method.
367
+ If available, * adder * and * remover * methods have priority over a * setter * method.
368
368
369
369
Checking Property Paths
370
370
-----------------------
You can’t perform that action at this time.
0 commit comments