在我创建一个方法后,我用它/**<enter>来生成DocBlock.它会自动填充@param和@return执行该功能.例:
/**
*
* @param type $str
* @return type
*/
public function strlen($str){
return strlen($str);
}
Run Code Online (Sandbox Code Playgroud)
如何自定义生成的块,以便它也可以填充@author并最终生成/**<enter>
/**
*
* @param type $str
* @return type
* @author John Doe <john@doe.com>
*/
public function strlen($str){
return strlen($str);
}
Run Code Online (Sandbox Code Playgroud)
谢谢