Skip to content

mark-hartmann/magic-property-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

magic-property-extractor

This package adds an additional extractor for the symfony/property-info 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

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

This Extractor implements the following interfaces:

  • PropertyDescriptionExtractorInterface
  • PropertyTypeExtractorInterface
  • PropertyAccessExtractorInterface
  • PropertyListExtractorInterface

Planned features

  • Support magic accessors and mutators

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages