The Reflection Group of Classes

The reflection group of classes or Application Programming Interface (API) is made up of a number of different classes and one interface, shown here:

class Reflection
interface Reflector
class ReflectionException extends Exception
class ReflectionFunction implements Reflector
class ReflectionParameter implements Reflector
class ReflectionMethod extends ReflectionFunction
class ReflectionClass implements Reflector
class ReflectionObject extends ReflectionClass
class ReflectionProperty implements Reflector
class ReflectionExtension implements Reflector

We won't be concerned with every class in the reflection API, but a general overview will help put things in perspective. Looking at this list, you maysuppose that ...

Get Object-Oriented PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.