File ManagerCurrent Directory: wp-content/plugins/wp-migrate-db/vendor/php-di/phpdoc-readerLinux appserver-7a7af3b2-php-0c9ec09e2f9746c2a80fa3756c076432 6.12.94+ #1 SMP Fri Jul 17 09:26:56 UTC 2026 x86_64Edit File: README.md # PhpDocReader [](https://travis-ci.org/mnapoli/PhpDocReader)  This project is used by: - [PHP-DI](http://php-di.org/) - [phockito-unit-php-di](https://github.com/balihoo/phockito-unit-php-di) Fork the README to add your project here. ## Features PhpDocReader parses `@var` and `@param` values in PHP docblocks: ```php use My\Cache\Backend; class Cache { /** * @var Backend */ protected $backend; /** * @param Backend $backend */ public function __construct($backend) { } } ``` It supports namespaced class names with the same resolution rules as PHP: - fully qualified name (starting with `\`) - imported class name (eg. `use My\Cache\Backend;`) - relative class name (from the current namespace, like `SubNamespace\MyClass`) - aliased class name (eg. `use My\Cache\Backend as FooBar;`) Primitive types (`@var string`) are ignored (returns null), only valid class names are returned. ## Usage ```php $reader = new PhpDocReader(); // Read a property type (@var phpdoc) $property = new ReflectionProperty($className, $propertyName); $propertyClass = $reader->getPropertyClass($property); // Read a parameter type (@param phpdoc) $parameter = new ReflectionParameter(array($className, $methodName), $parameterName); $parameterClass = $reader->getParameterClass($parameter); ``` Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirLICENSEFile1.03 KB Rename | Delete | EditREADME.mdFile1.44 KB Rename | Delete | Editcomposer.jsonFile696.00 B Rename | Delete | EditsrcDirectory Rename | Delete