Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有 PHP 编码标准明确定义如何为属性和方法编写 docblock 注释:
@var
@param
@return
@throws
包括它们之间的正确间距?
PSR-2涵盖了代码本身,但不强制使用注释。
PHP 中没有注释。如果您用于phpdoc生成文档,则需要遵循phpdoc指南。
phpdoc
http://www.phpdoc.org/