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.
评论重写的类或方法时公认的最佳实践是什么。
使用@see标签,但添加任何可能偏离扩展/覆盖类/方法的信息。例如,@author 可能不同,该方法会做一些额外的事情(假设它没有定义抽象方法)所以请注意这一点。
@see
这取决于您使用的文档,他们应该在其中概述它的细节,但是如果您使用“php docblock”,那么是的,如果没有阅读您使用的手册,请使用@see