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
}
}