Discovering changes to the Reflection extension
The Reflection extension is used to perform introspection on objects, classes, methods, and functions, among other things. ReflectionClass
and ReflectionObject
produce information on a class or an object instance respectively. ReflectionFunction
provides information on procedural-level functions. In addition, the Reflection
extension has a set of secondary classes produced by the main classes mentioned just now. These secondary classes include ReflectionMethod
, produced by ReflectionClass::getMethod()
, ReflectionProperty
, produced by ReflectionClass::getProperty()
, and so forth.
You might wonder: Who uses this extension? The answer is: any application that needs to perform analysis on an external set of classes. This might include software that performs automated code generation, testing, or documentation generation. Classes that perform hydration (populating objects from arrays) also benefit from the Reflection
extension.
Tip
...