-1

我想知道是否可以使用 phpDocumentor 从方法内部获取注释行。我不仅在方法块中注释,而且在它自身的方法内部也有很多注释。

class Test {

/**
 * Methdo to test if i get all the text back. 
 *
 * @return void
 */
public method getCommentFromMethod () {
    # Do something 
    $test = time();
    // dont forget to get this text to
    echo 'get the above comment';
    # How can i get this text also to phpDocumentor
}
}
4

1 回答 1

0

根据文档,这些内联注释不会被 phpDocumentor 拾取。

有关您可以记录的内容的列表,请参见此处:

http://www.phpdoc.org/docs/latest/getting-started/your-first-set-of-documentation.html#which-elements-can-be-documented

于 2015-03-13T20:13:49.557 回答