【发布时间】:2015-11-03 10:21:13
【问题描述】:
我在 PhpStorm 中遇到了一个问题。我有一个代码:
/**
* $this->data['rows'] My_Class[]
*/
public function countRows(){
foreach($this->data['rows'] as $row){
$row->(here i want to get all functions in a class with autocomplete)
}
}
在这里,我尝试使用 PhpStorm 自动完成助手来访问类函数,但这不起作用。
如何使用 PHPDoc 定义一些变量的确切类或类型?
【问题讨论】: