Skip to content

Commit c62a603

Browse files
Minor syntax fixes
1 parent e0a6f97 commit c62a603

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/property_access.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Writing to Array Properties
325325
~~~~~~~~~~~~~~~~~~~~~~~~~~~
326326

327327
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.
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

369369
Checking Property Paths
370370
-----------------------

0 commit comments

Comments
 (0)