自动完成列表中的 PHPDoc / PhpStorm 保护成员
PHPDoc / PhpStorm protected members in autocomplete list
是否可以在自动完成列表中显示受保护的成员?
例如:
class Foo
{
protected $bar;
public function __get($name) { return $this->$name; }
}
$foo = new Foo();
$foo-> // display autocomplete list with bar
我使用 PhpStorm 10
在 class 级 PHPDoc 注释中使用 @property
。
https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md#714-property
/**
* @property ProperTypeHere $bar [Optional description]
*/
class Foo
{
protected $bar;
public function __get($name) { return $this->$name; }
}
是否可以在自动完成列表中显示受保护的成员? 例如:
class Foo
{
protected $bar;
public function __get($name) { return $this->$name; }
}
$foo = new Foo();
$foo-> // display autocomplete list with bar
我使用 PhpStorm 10
在 class 级 PHPDoc 注释中使用 @property
。
https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md#714-property
/**
* @property ProperTypeHere $bar [Optional description]
*/
class Foo
{
protected $bar;
public function __get($name) { return $this->$name; }
}