diff --git a/components/property_info.rst b/components/property_info.rst index 4eab1ee13c5..6a06ab46200 100644 --- a/components/property_info.rst +++ b/components/property_info.rst @@ -370,6 +370,9 @@ Using PHP reflection, the :class:`Symfony\\Component\\PropertyInfo\\Extractor\\R provides list, type and access information from setter and accessor methods. It can also give the type of a property, and if it is initializable through the constructor. It supports return and scalar types for PHP 7. +The component is also able to extract the types of the constructor's parameters. +If the class is a sub-class, then the constructor's properties of the parent +superclass are extracted. .. note:: @@ -399,9 +402,15 @@ constructor. It supports return and scalar types for PHP 7. $reflectionExtractor->isReadable($class, $property); $reflectionExtractor->isWritable($class, $property); - // Initializable information + // Initializable information. $reflectionExtractor->isInitializable($class, $property); + // Constructor type information. + $reflectionExtractor->extractFromConstructor($class, $property); + $reflectionExtractor->getTypes($class, $property, [ + 'enable_constructor_extraction' => true + ]); + PhpDocExtractor ~~~~~~~~~~~~~~~ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy