class AdaptedReflectionMethod extends AbstractReflectionAdapter (View source)

Adapter wrapper around ReflectionMethod

Uses automatic extraction with custom handling for declaring class

PHP 5.6+ compatible

Properties

protected array $data

Extracted data from the reflection object

from  AbstractReflectionAdapter

Methods

array
getExtractionConfig()

Extract configuration - override in subclasses if needed

array
getAdditionalSkipMethods()

Get additional skip methods specific to ReflectionMethod Most common patterns are now in ReflectionTypeRegistry::getGlobalSkipPatterns()

extractFromReflection(object $reflectionObject)

Perform generic extraction from reflection object

postExtract(object $reflectionObject)

Handle complex properties after basic extraction

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)

mixed
getData(string $key, mixed $default = null)

Get a specific value from extracted data

setData(string $key, mixed $value)

Set a value in extracted data

__construct($reflectionMethod)

No description

getName()

No description

getDeclaringClass()

No description

isPublic()

No description

isProtected()

No description

isPrivate()

No description

isStatic()

No description

isFinal()

No description

isAbstract()

No description

isDeprecated()

No description

getParameters()

No description

hasReturnType()

No description

getReturnType()

No description

getDocComment()

No description

getAttributes()

No description

hasTentativeReturnType()

No description

getTentativeReturnType()

No description

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.

Return Value

array

Configuration for ReflectionMethodExtractor

protected array getAdditionalSkipMethods()

Get additional skip methods specific to ReflectionMethod Most common patterns are now in ReflectionTypeRegistry::getGlobalSkipPatterns()

Return Value

array

Additional method names to skip

protected extractFromReflection(object $reflectionObject)

Perform generic extraction from reflection object

Parameters

object $reflectionObject

protected postExtract(object $reflectionObject)

Handle complex properties after basic extraction

Parameters

object $reflectionObject

Original reflection object

mixed __call(string $name, array $arguments)

Magic method to proxy method calls to stored data

Parameters

string $name

Method name

array $arguments

Method arguments

Return Value

mixed

bool hasMethod(string $methodName)

Check if a method exists in the extracted data

Parameters

string $methodName

Return Value

bool

array getExtractedData()

Get all extracted data (for debugging)

Return Value

array

protected mixed getData(string $key, mixed $default = null)

Get a specific value from extracted data

Parameters

string $key
mixed $default

Default value if key doesn't exist

Return Value

mixed

protected setData(string $key, mixed $value)

Set a value in extracted data

Parameters

string $key
mixed $value

__construct($reflectionMethod)

No description

Parameters

$reflectionMethod

getName()

No description

getDeclaringClass()

No description

isPublic()

No description

isProtected()

No description

isPrivate()

No description

isStatic()

No description

isFinal()

No description

isAbstract()

No description

isDeprecated()

No description

getParameters()

No description

hasReturnType()

No description

getReturnType()

No description

getDocComment()

No description

getAttributes()

No description

hasTentativeReturnType()

No description

getTentativeReturnType()

No description