AbstractReflectionAdapter
abstract class AbstractReflectionAdapter (View source)
Abstract base class for Reflection adapter wrappers
Provides automatic extraction of data from Reflection objects using introspection. Adapts PHP's native Reflection API to a consistent interface that can be used across different PHP versions and enables data extraction for further processing. Subclasses can override configuration or add custom extraction logic.
PHP 5.6+ compatible (no typed properties, no return types)
Properties
| protected array | $data | Extracted data from the reflection object |
Methods
Extract configuration - override in subclasses if needed
Get additional skip methods specific to this adapter Override in subclasses to add class-specific skip patterns
Perform generic extraction from reflection object
Post-extraction hook for custom processing Override in subclasses if needed
Magic method to proxy method calls to stored data
Check if a method exists in the extracted data
Get all extracted data (for debugging)
Get a specific value from extracted data
Set a value in extracted data
Details
protected array
getExtractionConfig()
Extract configuration - override in subclasses if needed
Subclasses should only override this to add ADDITIONAL skip methods beyond the global patterns defined in ReflectionTypeRegistry.
protected array
getAdditionalSkipMethods()
Get additional skip methods specific to this adapter Override in subclasses to add class-specific skip patterns
protected
extractFromReflection(object $reflectionObject)
Perform generic extraction from reflection object
protected
postExtract(object $reflectionObject)
Post-extraction hook for custom processing Override in subclasses if needed
mixed
__call(string $name, array $arguments)
Magic method to proxy method calls to stored data
bool
hasMethod(string $methodName)
Check if a method exists in the extracted data
array
getExtractedData()
Get all extracted data (for debugging)
protected mixed
getData(string $key, mixed $default = null)
Get a specific value from extracted data
protected
setData(string $key, mixed $value)
Set a value in extracted data