Long/short form for namespaces in PHPDoc section

Hello.

I have 2 classes in hierarchy - sub class:
----------------------------------------------------
namespace Service\Calc\Bonus\MyClass;

class PrepareTrans {}
----------------------------------------------------

and main class:
----------------------------------------------------
namespace Service\Calc\Bonus;

class MyClass {}
----------------------------------------------------


My question is "can I switch short/long form of the propery name for doc generator?"

I.e., I write the code:
----------------------------------------------------
namespace Service\Calc\Bonus;

class MyClass
{
private $subTrans;

public function __construct(
\Service\Calc\Bonus\MyClass\PrepareTrans $subTrans
)
{
$this->subTrans = $subTrans;
}
----------------------------------------------------

then I type "/**" under "private $subTrans;" and press 'Space':
----------------------------------------------------
/**[Space]
private $subTrans;
----------------------------------------------------

I have:
----------------------------------------------------
/** @var MyClass\PrepareTrans */
private $subTrans;
----------------------------------------------------

but I need:
----------------------------------------------------
/** @var \Service\Calc\Bonus\MyClass\PrepareTrans */
private $subTrans;
----------------------------------------------------

Does some IDE config parameter exist to change short/long form of the generated value in this case?

2 comments

Hi there,

This one?  Settings/Preferences | Editor | Code Style | PHP | PHPDoc --> Use fully-qualified class names

1

Please sign in to leave a comment.