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;
@@ -151,9 +149,7 @@ List Information
151149
152150Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyListExtractorInterface `
153151provide the list of properties that are available on a class as an array
154- containing each property name as a string.
155-
156- .. code-block :: php
152+ containing each property name as a string::
157153
158154 $properties = $propertyInfo->getProperties($class);
159155 /*
@@ -173,9 +169,7 @@ Type Information
173169
174170Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyTypeExtractorInterface `
175171provide :ref: `extensive data type information <components-property-info-type >`
176- for a property.
177-
178- .. code-block :: php
172+ for a property::
179173
180174 $types = $propertyInfo->getTypes($class, $property);
181175
@@ -204,9 +198,7 @@ Description Information
204198
205199Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyDescriptionExtractorInterface `
206200provide long and short descriptions from a properties annotations as
207- strings.
208-
209- .. code-block :: php
201+ strings::
210202
211203 $title = $propertyInfo->getShortDescription($class, $property);
212204 /*
@@ -230,9 +222,7 @@ Access Information
230222~~~~~~~~~~~~~~~~~~
231223
232224Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyAccessExtractorInterface `
233- provide whether properties are readable or writable as booleans.
234-
235- .. code-block :: php
225+ provide whether properties are readable or writable as booleans::
236226
237227 $propertyInfo->isReadable($class, $property);
238228 // Example Result: bool(true)
@@ -251,9 +241,7 @@ Property Initializable Information
251241----------------------------------
252242
253243Extractors that implement :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyInitializableExtractorInterface `
254- provide whether properties are initializable through the class's constructor as booleans.
255-
256- .. code-block :: php
244+ provide whether properties are initializable through the class's constructor as booleans::
257245
258246 $propertyInfo->isInitializable($class, $property);
259247 // Example Result: bool(true)
@@ -413,9 +401,7 @@ Using `phpDocumentor Reflection`_ to parse property and method annotations,
413401the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ PhpDocExtractor `
414402provides type and description information. This extractor is automatically
415403registered with the ``property_info `` in the Symfony Framework *if * the dependent
416- library is present.
417-
418- .. code-block :: php
404+ library is present::
419405
420406 use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
421407
@@ -438,9 +424,7 @@ Using :ref:`groups metadata <serializer-using-serialization-groups-annotations>`
438424from the :doc: `Serializer component </components/serializer >`,
439425the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ SerializerExtractor `
440426provides list information. This extractor is *not * registered automatically
441- with the ``property_info `` service in the Symfony Framework.
442-
443- .. code-block :: php
427+ with the ``property_info `` service in the Symfony Framework::
444428
445429 use Doctrine\Common\Annotations\AnnotationReader;
446430 use Symfony\Component\PropertyInfo\Extractor\SerializerExtractor;
@@ -466,9 +450,7 @@ DoctrineExtractor
466450Using entity mapping data from `Doctrine ORM `_, the
467451:class: `Symfony\\ Bridge\\ Doctrine\\ PropertyInfo\\ DoctrineExtractor `
468452provides list and type information. This extractor is not registered automatically
469- with the ``property_info `` service in the Symfony Framework.
470-
471- .. code-block :: php
453+ with the ``property_info `` service in the Symfony Framework::
472454
473455 use Doctrine\ORM\EntityManager;
474456 use Doctrine\ORM\Tools\Setup;
0 commit comments