File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -409,6 +409,22 @@ constructor. It supports return and scalar types for PHP 7.
409
409
// Initializable information
410
410
$reflectionExtractor->isInitializable($class, $property);
411
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
+
412
428
PhpDocExtractor
413
429
~~~~~~~~~~~~~~~
414
430
You can’t perform that action at this time.
0 commit comments