我有课Abc
with 方法(正文并不重要):
/**
* @return SomeBaseClass
*/
function getAll() { ... }
在幼儿班Abc
called AbcChild
我想重新定义仅返回类的类型,以便在 Netbeans 中正确查看它。我可以在不重新定义方法的情况下做到这一点吗:
/**
* @return SomeClass
*/
function getAll() { return parent::getAll(); }
尝试这样的事情:
/**
* @method SomeClass getAll()
*/
class AbcChild
{
// ....
}
更多信息关于@method http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.method.pkg.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)