phpdoc只记录起始docblock
我正在尝试记录一个示例文件:phpdoc只记录起始docblock,php,phpdoc,phpdocumentor2,Php,Phpdoc,Phpdocumentor2,我正在尝试记录一个示例文件: /** * ElasticSearch Library * * Intended to do some cool stuff * * * @author cmvr * @subpackage elasticSearch * @copyright free to use * @license http://www.gnu.org/copyleft/gpl.html Freely available under GPL */ namespace
/**
* ElasticSearch Library
*
* Intended to do some cool stuff
*
*
* @author cmvr
* @subpackage elasticSearch
* @copyright free to use
* @license http://www.gnu.org/copyleft/gpl.html Freely available under GPL
*/
namespace Libs;
/**
* This is the main class of elastic search
*/
class elasticSearch {
protected $dataConnection;
/**
* elastic search setup data connection
* @return boolean
*/
public function setupDataConnection($dataString) {
return true;
}
}
我正在CLI中运行:
phpdoc -f ../../app/libraries/elasticSearch.php -t ../../newDocs
它工作正常,但是当我在这里查看html输出时:
newDocs/files/elasticSearch.html
setupDataConnection类和方法根本没有文档记录
这是我看到的屏幕:
谁能解释我做错了什么