https://github.com/mark-hartmann/magic-property-extractor
https://github.com/mark-hartmann/magic-property-extractor
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mark-hartmann/magic-property-extractor
- Owner: mark-hartmann
- License: mit
- Created: 2019-07-20T07:59:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-04T11:30:21.000Z (over 5 years ago)
- Last Synced: 2025-01-06T06:16:06.841Z (5 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# magic-property-extractor
This package adds an additional extractor for the [symfony/property-info](https://symfony.com/doc/current/components/property_info.html) package which is able to
interpret `@property`, `@property-read` and `@property-write` tags documented in the DocComment of a class.### Installation
```
composer require hartmann/magic-property-extractor
```### Usage
```php
use Hartmann\PropertyInfo\Extractor\PhpDocMagicExtractor$magicExtractor = new PhpDocMagicExtractor();
$properties = $magicExtractor->getProperties(\Foo::class);
```or [create a new PropertyInfoExtractor instance and provide it with a set of information extractors](https://symfony.com/doc/current/components/property_info.html#usage)
### [Extractable Information](https://symfony.com/doc/current/components/property_info.html#extractable-information)
This Extractor implements the following interfaces:
- `PropertyDescriptionExtractorInterface`
- `PropertyTypeExtractorInterface`
- `PropertyAccessExtractorInterface`
- `PropertyListExtractorInterface`### Planned features
- [ ] Support magic accessors and mutators