rector/packages/ReflectionDocBlock
2017-10-25 16:38:24 +02:00
..
2017-10-25 01:20:00 +02:00
2017-10-25 01:37:01 +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