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
325325~~~~~~~~~~~~~~~~~~~~~~~~~~~
326326
327327The ``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.
329329
330330.. code-block :: php
331331
@@ -358,13 +358,13 @@ properties through `adder` and `remover` methods.
358358
359359 var_dump($person->getChildren()); // array('kevin', 'wouter')
360360
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.
365365`The Inflector component `_ is used to find the singular of a property name.
366366
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.
368368
369369Checking Property Paths
370370-----------------------
You can’t perform that action at this time.
0 commit comments