
Public Member Functions | |
| getDeclaringClass () | |
| getClass () | |
| getDeclaringFunction () | |
Protected Member Functions | |
| createExtendedReflectionClass (ReflectionClass $objOriginalReflectionClass) | |
| createExtendedReflectionMethod (ReflectionMethod $objOriginalReflectionMethod) | |
| createExtendedReflectionFunction (ReflectionFunction $objOriginalReflectionFunction) | |
Reflection classes can be a problem because the reflection methods what return objects will return the original reflection object and not the extended version of it. So it is necessary to create methods what convert the original methods to return the extended version of the objects.
Definition at line 19 of file ExtendedReflectionParameter.class.php.
| createExtendedReflectionClass | ( | ReflectionClass $ | objOriginalReflectionClass | ) | [protected] |
Convert a reflection class into a extended reflection class
This is the method what should be replaced when this class be extended.
| ReflectionClass | $objOriginalReflectionClass |
Reimplemented in CodeInstrumentationParameter, and CodeReflectionParameter.
Definition at line 64 of file ExtendedReflectionParameter.class.php.
Referenced by getClass(), and getDeclaringClass().
00065 { 00066 return new ExtendedReflectionClass( $objOriginalReflectionClass->getName() ); 00067 }
| createExtendedReflectionFunction | ( | ReflectionFunction $ | objOriginalReflectionFunction | ) | [protected] |
Convert a reflection function into a extended reflection function
This is the method what should be replaced when this class be extended.
| ReflectionFunction | $objOriginalReflectionFunction |
Reimplemented in CodeInstrumentationParameter, and CodeReflectionParameter.
Definition at line 92 of file ExtendedReflectionParameter.class.php.
Referenced by getDeclaringFunction().
00093 { 00094 if( $objOriginalReflectionFunction instanceof ReflectionMethod ) 00095 { 00096 return new ExtendedReflectionMethod( $objOriginalReflectionFunction->getName() ); 00097 } 00098 else 00099 { 00100 return new ExtendedReflectionFunction( $objOriginalReflectionFunction->getName() ); 00101 } 00102 }
| createExtendedReflectionMethod | ( | ReflectionMethod $ | objOriginalReflectionMethod | ) | [protected] |
Convert a reflection method into a extended reflection method
This is the method what should be replaced when this class be extended.
| ReflectionMethod | $objOriginalReflectionMethod |
Reimplemented in CodeInstrumentationParameter, and CodeReflectionParameter.
Definition at line 78 of file ExtendedReflectionParameter.class.php.
00079 { 00080 return new ExtendedReflectionMethod( $this->getName() , $objOriginalReflectionMethod->getName() ); 00081 }
| getClass | ( | ) | [final] |
Get the class type of the reflected parameter
Definition at line 36 of file ExtendedReflectionParameter.class.php.
References createExtendedReflectionClass().
00037 { 00038 if( parent::getClass() == null ) 00039 { 00040 return null; 00041 } 00042 return $this->createExtendedReflectionClass( parent::getClass() ); 00043 }
| getDeclaringClass | ( | ) | [final] |
Get the class owner of the reflected parameter
Definition at line 26 of file ExtendedReflectionParameter.class.php.
References createExtendedReflectionClass().
00027 { 00028 return $this->createExtendedReflectionClass( parent::getDeclaringClass() ); 00029 }
| getDeclaringFunction | ( | ) | [final] |
Get the declarion function of the reflected function
Definition at line 50 of file ExtendedReflectionParameter.class.php.
References createExtendedReflectionFunction().
00051 { 00052 $objReflectionFunction = $this->createExtendedReflectionFunction( parent::getDeclaringFunction() ); 00053 }
1.5.9