ReflectionClass和ReflectionMethod
本文最后更新于:2023年12月5日 晚上
ReflectionClass
ReflectionMethod
ReflectionClass 类报告了一个类的有关信息。
ReflectionMethod 类报告了一个方法的有关信息。
实例化 ReflectionMethod 的时候需要传入对象和方法两个参数。
通常 ReflectionMethod 可以作为参数传递到ReflectionClass的getMethod。来限制获取的方法类别。
ReflectionClass和ReflectionMethod
http://blog.lujinkai.cn/PHP/基础/ReflectionClass和ReflectionMethod/