如何编写有效的软件注释?
- 内容介绍
- 文章标签
- 相关推荐
本文共计236个文字,预计阅读时间需要1分钟。
一、概念:为什么需要使用注解?
1.PHP本身没有注解,因此只能使用注释来模拟注解功能。
2.借鉴了Java Spring的思想。
3.一般框架会使用Doctrine Annotations库:[https://github.com/doctrine/annotations](https://github.com/doctrine/annotations)。
4.Swoole是常驻内存的。
本文共计236个文字,预计阅读时间需要1分钟。
一、概念:为什么需要使用注解?
1.PHP本身没有注解,因此只能使用注释来模拟注解功能。
2.借鉴了Java Spring的思想。
3.一般框架会使用Doctrine Annotations库:[https://github.com/doctrine/annotations](https://github.com/doctrine/annotations)。
4.Swoole是常驻内存的。

