【问题标题】:how to document conditional statements like if and switch in phpDoc?如何在 phpDoc 中记录 if 和 switch 等条件语句?
【发布时间】:2015-03-04 05:19:12
【问题描述】:
if($condition){

$i = $i + 1;

}
else 
{
$i = $i - 1;
}

如何在 phpDoc 中记录一个简单的 if、else 条件?

【问题讨论】:

  • 你想做什么。

标签: php phpdoc


【解决方案1】:

会是这样的:

if ($condition)
{
    /**
     * This will increase counter
     */
    $i = $i + 1;
} else
{
    /**
     * This will decrease counter
     */
    $i = $i - 1;
}

见文档:http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.ignore.pkg.html

【讨论】:

    猜你喜欢
    • 2016-09-05
    • 2016-03-02
    • 2020-05-01
    • 2011-10-21
    • 1970-01-01
    • 2019-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多