ReflectionClass和ReflectionMethod

ReflectionClass
ReflectionMethod

ReflectionClass 类报告了一个类的有关信息。

ReflectionMethod 类报告了一个方法的有关信息。

实例化 ReflectionMethod 的时候需要传入对象和方法两个参数。

通常 ReflectionMethod 可以作为参数传递到ReflectionClassgetMethod。来限制获取的方法类别。