-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 に答える