3737
3838To use this component, create a new
3939:class: `Symfony\\ Component\\ PropertyInfo\\ PropertyInfoExtractor ` instance and
40- provide it with a set of information extractors.
41-
42- .. code-block :: php
40+ provide it with a set of information extractors::
4341
4442 use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
4543 use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
@@ -146,9 +144,7 @@ List Information
146144
147145Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyListExtractorInterface `
148146provide the list of properties that are available on a class as an array
149- containing each property name as a string.
150-
151- .. code-block :: php
147+ containing each property name as a string::
152148
153149 $properties = $propertyInfo->getProperties($class);
154150 /*
@@ -168,9 +164,7 @@ Type Information
168164
169165Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyTypeExtractorInterface `
170166provide :ref: `extensive data type information <components-property-info-type >`
171- for a property.
172-
173- .. code-block :: php
167+ for a property::
174168
175169 $types = $propertyInfo->getTypes($class, $property);
176170
@@ -199,9 +193,7 @@ Description Information
199193
200194Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyDescriptionExtractorInterface `
201195provide long and short descriptions from a properties annotations as
202- strings.
203-
204- .. code-block :: php
196+ strings::
205197
206198 $title = $propertyInfo->getShortDescription($class, $property);
207199 /*
@@ -225,9 +217,7 @@ Access Information
225217~~~~~~~~~~~~~~~~~~
226218
227219Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyAccessExtractorInterface `
228- provide whether properties are readable or writable as booleans.
229-
230- .. code-block :: php
220+ provide whether properties are readable or writable as booleans::
231221
232222 $propertyInfo->isReadable($class, $property);
233223 // Example Result: bool(true)
@@ -422,9 +412,7 @@ Using `phpDocumentor Reflection`_ to parse property and method annotations,
422412the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ PhpDocExtractor `
423413provides type and description information. This extractor is automatically
424414registered with the ``property_info `` in the Symfony Framework *if * the dependent
425- library is present.
426-
427- .. code-block :: php
415+ library is present::
428416
429417 use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
430418
@@ -447,9 +435,7 @@ Using :ref:`groups metadata <serializer-using-serialization-groups-annotations>`
447435from the :doc: `Serializer component </components/serializer >`,
448436the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ SerializerExtractor `
449437provides list information. This extractor is *not * registered automatically
450- with the ``property_info `` service in the Symfony Framework.
451-
452- .. code-block :: php
438+ with the ``property_info `` service in the Symfony Framework::
453439
454440 use Doctrine\Common\Annotations\AnnotationReader;
455441 use Symfony\Component\PropertyInfo\Extractor\SerializerExtractor;
@@ -475,9 +461,7 @@ DoctrineExtractor
475461Using entity mapping data from `Doctrine ORM `_, the
476462:class: `Symfony\\ Bridge\\ Doctrine\\ PropertyInfo\\ DoctrineExtractor `
477463provides list and type information. This extractor is not registered automatically
478- with the ``property_info `` service in the Symfony Framework.
479-
480- .. code-block :: php
464+ with the ``property_info `` service in the Symfony Framework::
481465
482466 use Doctrine\ORM\EntityManager;
483467 use Doctrine\ORM\Tools\Setup;
0 commit comments