3
我在PhpStorm中堆积了一个问题。我有一个代码:如何设置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?
谢谢!这正是我想要的! –