I stumbled upon some Nette code where comments were used to set class attribute, and the Nette doc approves it:
class Foo {
/** @var someClass @inject */
public $bar;
}
Having PHP Reflection at hand, should I use coments invoking code more as a standard language feature ("comments based coding"), or should I avoid it as an antipattern? Are there any authoritative resources advocating or denouncing such comments handling?