它供应了一些需要的改善,例如类可见性、合适的组织函数息争构函数、输入提醒和类反射(class-reflection)API。它为在 PHP 中进行高级的面向对象编程敞开了年夜门,并答应实现加倍简单的设计模式,以及更好的设计类和 API。
基于1个网页-相关网页
Reflection gives your executing code access to internal class information.
反射使执行代码能够访问内部类信息。
The First time value is the time taken for constructing the first reflection replacement class, which includes the time to load and initialize the classes in the framework code.
第一个时间值是构建第一个反射替代类所花费的时间,这个时间包括装载和初始化框架代码中的类的时间。
Now that I've demonstrated the reflection version of the code, I'll show you how to substitute a generated class for the use of reflection.
我已经展示了反射版本的代码,现在要展示如何用生成的类来取代反射。
应用推荐