phpDoc类常量文档 [英] phpDoc class constants documentation

查看:120
本文介绍了phpDoc类常量文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是正确的方式来记录phpDoc的类常量?我已阅读手册,但我找不到任何有关他们

which is the correct way to document class constants for phpDoc? I've read the manual but i can't find anything about them

推荐答案

我相当确定你可以使用 @const ,但我找不到任何英文文档。有一个德语示例此处。它显示 define 语句而不是类常量,但是IIRC的语法是一样的。

I'm fairly sure that you can use @const, though I can't find any English documentation. There's a German example here. It shows define statements rather than class constants, but IIRC the syntax is the same.

这篇关于phpDoc类常量文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆