如何在phpDoc中记录条件语句,如if和switch


how to document conditional statements like if and switch in phpDoc?

if($condition){
$i = $i + 1;
}
else 
{
$i = $i - 1;
}

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

它将是这样的:

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