rector/packages/ReflectionDocBlock
2018-04-09 00:11:13 +02:00
..
2018-03-28 09:12:20 -03:00
2017-12-31 17:08:49 -02:00

Reflection DocBlock

This package takes care of Fully Qualified names from annotations:

This code:

namespace SomeNamespace;

...

/**
 * @param SomeType $value
 */
public function __construct($value)
{
}

will produce this:

$valueNodeTypes = $valueNode->getAttribute(Attributes::TYPES);
var_dump($valueNodeTypes); // ['SomeNamespace\SomeType'];

Inspiration