
Public Member Functions | |
| getCode () | |
Protected Member Functions | |
| createExtendedReflectionClass (ReflectionClass $objOriginalReflectionClass) | |
| createExtendedReflectionMethod (ReflectionMethod $objOriginalReflectionMethod) | |
| createExtendedReflectionFunction (ReflectionFunction $objOriginalReflectionFunction) | |
Implements the code reflection parameters of the parameter reflection
Definition at line 14 of file CodeReflectionParameter.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 from ExtendedReflectionParameter.
Reimplemented in CodeInstrumentationParameter.
Definition at line 43 of file CodeReflectionParameter.class.php.
00044 { 00045 return new CodeReflectionClass( $objOriginalReflectionClass->getName() ); 00046 }
| 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 from ExtendedReflectionParameter.
Reimplemented in CodeInstrumentationParameter.
Definition at line 53 of file CodeReflectionParameter.class.php.
00054 { 00055 if( $objOriginalReflectionFunction instanceof ReflectionMethod ) 00056 { 00057 return new CodeReflectionMethod( $objOriginalReflectionFunction->getName() ); 00058 } 00059 else 00060 { 00061 return new CodeReflectionFunction( $objOriginalReflectionFunction->getName() ); 00062 } 00063 }
| 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 from ExtendedReflectionParameter.
Reimplemented in CodeInstrumentationParameter.
Definition at line 48 of file CodeReflectionParameter.class.php.
00049 { 00050 return new CodeReflectionMethod( $this->getName() , $objOriginalReflectionMethod->getName() ); 00051 }
| getCode | ( | ) |
Get the code from the parameter
Definition at line 21 of file CodeReflectionParameter.class.php.
00022 { 00023 $strCode = ""; 00024 00028 /* 00029 if( $this->getClass() != null ) 00030 { 00031 $strCode .= $this->getClass()->getClassName() . " "; 00032 } 00033 */ 00034 $strCode .= '$' . $this->getName(); 00035 00036 if( $this->isOptional() ) 00037 { 00038 $strCode .= " = " . var_export( $this->getDefaultValue() , 1 ); 00039 } 00040 return $strCode; 00041 }
1.5.9