arm*_*min 11 php documentation phpdoc phpdocumentor2
是否可以链接到另一个方法/类/属性/等.在我的项目里面内嵌@deprecated
标签?像这样:
/**
* Method description
* @deprecated 1.0 Reason for deprecation, use {@link newMethod()} instead!
* @param string $str
* @param string|null $str2
* @return bool
*/
public function method($str, $str2) {
// TODO: Code...
}
...
Run Code Online (Sandbox Code Playgroud)
?
Dra*_*gos 13
根据PHPdoc.org,你可以使用@see标签.
/**
* @see http://example.com/my/bar Documentation of Foo.
* @see MyClass::$items For the property whose items are counted.
* @see MyClass::setItems() To set the items for this collection.
*
* @return integer Indicates the number of items.
*/
function count()
{
<...>
}
Run Code Online (Sandbox Code Playgroud)
此外,PHPdoc.org建议在@deprecated方法的情况下使用@see:
建议(但不要求)提供附加说明,说明关联元素被弃用的原因.如果它被另一个方法取代,则建议在指向新元素的同一PHPDoc中添加@see标记.
归档时间: |
|
查看次数: |
3276 次 |
最近记录: |