Skip to main content

Module reflection

Module reflection 

Source
Expand description

Generic-reflection type providers.

These providers make Reflection*<T> carry useful types derived from the reflected class T. Because ReflectionClass::getMethods() erases which method each element represents, the tightest sound approximation for a single ReflectionMethod<T> is “some method of T”: getName() returns the union of T’s method names, and invoke() returns the union of T’s method return types.

Structs§

ReflectionClassHasMethodAssertionProvider
Provider for ReflectionClass<T>::hasMethod($name).
ReflectionMethodGetNameProvider
Provider for ReflectionMethod<T>::getName().
ReflectionMethodInvokeProvider
Provider for ReflectionMethod<T>::invoke() and invokeArgs().