We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b43a26f commit d14273cCopy full SHA for d14273c
components/property_info.rst
@@ -409,6 +409,22 @@ constructor. It supports return and scalar types for PHP 7.
409
// Initializable information
410
$reflectionExtractor->isInitializable($class, $property);
411
412
+Excluding static properties
413
+...........................
414
+By default, the static properties are extracted. To get them excluded,
415
+you can use the ``exclude_static_properties`` context option.
416
+
417
418
+.. code-block:: php
419
420
+ use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
421
422
+ $reflectionExtractor = new ReflectionExtractor();
423
424
+ $reflectionExtractor->getProperties($class, [
425
+ ReflectionExtractor::EXCLUDE_STATIC_PROPERTIES => true,
426
+ ]);
427
428
PhpDocExtractor
429
~~~~~~~~~~~~~~~
430
0 commit comments