它供应了一些需要的改善,例如类可见性、合适的组织函数息争构函数、输入提醒和类反射(class-reflection)API。它为在 PHP 中进行高级的面向对象编程敞开了年夜门,并答应实现加倍简单的设计模式,以及更好的设计类和 API。
基于1个网页-相关网页
The Class reflection calls to access method information are very similar to those used for constructors and fields.
获得方法信息的Class反射调用与用于构造函数和字段的调用非常类似。
Reflection gives your executing code access to internal class information.
反射使执行代码能够访问内部类信息。
Reflection is the runtime discovery of information, such as methods, fields, and constructors, about a given class or interface.
反射是运行时发现的关于给定类或接口的信息,如方法、字段和构造函数。
应用推荐