使用phpDocumentor记录PHP常量(定义)的正确方法是什么

Ale*_*exV 14 php constants phpdoc

我们如何在PHP中使用define()定义(使用phpDocumentor)常量?

我在文档中找不到任何内容,但在sample2.php中找到了以下示例(我没看到它的用法):

/**#@+
 * Constants
 */
/**
 * first constant
 */
define('testing', 6);
/**
 * second constant
 */
define('anotherconstant', strlen('hello'));
Run Code Online (Sandbox Code Playgroud)

任何人都可以告诉我用phpDocumentor在PHP中记录常量的最佳方法是什么?

kb.*_*kb. 6

通常,定义语句仅使用描述性文本进行评论,因此基本上是您对其进行评论的方式.

要了解有关DocBlock模板标记的更多信息/**#@+,请查看手册页.