首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在phpDocumentor2中,@uses和@uses没有解析

在phpDocumentor2中,@uses和@uses没有解析
EN

Stack Overflow用户
提问于 2013-07-06 16:38:58
回答 1查看 161关注 0票数 1

我正在使用phpDocumentor2为我的代码编译文档。包含“抛出”和“使用”的DocBlocks并不完全像我所期望的那样编译。

具体来说,FQSEN没有在文档输出中呈现。

,例如

代码语言:javascript
复制
/**
 * Constructs the object and loads data.
 * 
 * This constructor invokes the gatherData and populates the object's instance variables.
 *
 * @uses gatherData() to load in the data associated with this object.
 * @uses load() to populate the data gathered.
 */

产生..。

注意,输出中没有出现"gatherData()“和"load()”方法名。然而,他们的描述确实如此。

我也看到了类似的“抛出标签”的效果。

这是预期的行为吗?我是不是误用了标签?

EN

回答 1

Stack Overflow用户

发布于 2013-07-06 17:02:34

如果这些是某个类的方法,您应该将它们指定如下

代码语言:javascript
复制
@uses SomeClass::gatherData() to load in the data associated with this object.

原始phpdocumentor不支持名称空间,您可能需要切换到phpdocumentor2版本。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17504923

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档