Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #30706 [PropertyInfo] Add possibility to extract private and …
…protected properties in reflection extractor (joelwurtz) This PR was squashed before being merged into the 4.3-dev branch (closes #30706). Discussion ---------- [PropertyInfo] Add possibility to extract private and protected properties in reflection extractor | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30248 | License | MIT | Doc PR | TODO This PR add the possibility to extract private and protected properties from a class by passing a new argument to the `ReflectionExtractor` This new argument consist of flag that filters properties, so someone will also be able to use the `ReflectionExtractor` only for private property ```php new ReflectionExtractor(null, null, null, true, ReflectionExtractor::ALLOW_PRIVATE | ReflectionExtractor::ALLOW_PROTECTED) ``` Flags method was prefered over a list of bool to avoid too many parameters and also be close to the reflection API of PHP Commits ------- 05e487f [PropertyInfo] Add possibility to extract private and protected properties in reflection extractor
- Loading branch information
Showing
2 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters