是否可以在自动填充列表中显示受保护的成员? 例如:
filepath = '/train.txt';
fileID = fopen(filepath);
C = textscan(fileID,'%s %s %s %s %s %s %s %s %s %s %s','Delimiter',',');
fclose(fileID);
N = size(C{1},1);
D = 11; %number of attributes
data = zeros(N,D);
label = zeros(N,1);
for n=1:N %1~214
for d=1:D %1~11
data(n,d) = C{d}{n};
end
label(n) = C{D}{n};
end
我使用PhpStorm 10
答案 0 :(得分:1)
在类级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; }
}