1

我正在尝试记录一个示例文件:

/**
 * 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 根本没有记录。

这是我看到的屏幕: 类名和方法没有记录

谁能解释我做错了什么?

4

0 回答 0