Skip to content

Commit 8415f96

Browse files
Minor tweaks
1 parent eebca4a commit 8415f96

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

components/property_info.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ provide it with a set of information extractors.
7878
7979
.. versionadded:: 4.2
8080
:class:`Symfony\\Component\\PropertyInfo\\PropertyInitializableExtractorInterface`
81-
was added in Symfony 4.2.
81+
was introduced in Symfony 4.2.
8282

8383
Extractor Ordering
8484
~~~~~~~~~~~~~~~~~~
@@ -127,7 +127,7 @@ Extractable Information
127127
-----------------------
128128

129129
The :class:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor`
130-
class exposes public methods to extract five types of information:
130+
class exposes public methods to extract several types of information:
131131

132132
* :ref:`List of properties <property-info-list>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface::getProperties()`
133133
* :ref:`Property type <property-info-type>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface::getTypes()`
@@ -265,13 +265,14 @@ provide whether properties are initializable through the class's constructor as
265265
$propertyInfo->isInitializable($class, $property);
266266
// Example Result: bool(true)
267267
268-
:method:`Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor::isInitializable` returns ``true``
269-
if a constructor's parameter of the given class matches the given property name.
268+
:method:`Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor::isInitializable`
269+
returns ``true`` if a constructor's parameter of the given class matches the
270+
given property name.
270271

271272
.. tip::
272273

273274
The main :class:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor`
274-
class implements all five interfaces, delegating the extraction of property
275+
class implements all interfaces, delegating the extraction of property
275276
information to the extractors that have been registered with it.
276277

277278
This means that any method available on each of the extractors is also
@@ -374,9 +375,8 @@ ReflectionExtractor
374375

375376
Using PHP reflection, the :class:`Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor`
376377
provides list, type and access information from setter and accessor methods.
377-
It can also give the type of a property, and if it is initializable through the constructor using
378-
constructor's parameters.
379-
It supports return and scalar types for PHP 7+.
378+
It can also give the type of a property, and if it is initializable through the
379+
constructor. It supports return and scalar types for PHP 7.
380380

381381
.. note::
382382

0 commit comments

Comments
 (0)