00001 <?php 00014 class CodeInstrumentationParameter extends CodeReflectionParameter 00015 { 00023 protected function createExtendedReflectionClass( ReflectionClass $objOriginalReflectionClass ) 00024 { 00025 return new CodeInstrumentationClass( $objOriginalReflectionClass->getName() ); 00026 } 00027 00035 protected function createExtendedReflectionMethod( ReflectionMethod $objOriginalReflectionMethod ) 00036 { 00037 return new CodeInstrumentationMethod( $this->getName() , $objOriginalReflectionMethod->getName() ); 00038 } 00039 00047 protected function createExtendedReflectionFunction( ReflectionFunction $objOriginalReflectionFunction ) 00048 { 00049 if( $objOriginalReflectionFunction instanceof ReflectionMethod ) 00050 { 00051 return new CodeInstrumentationMethod( $objOriginalReflectionFunction->getName() ); 00052 } 00053 else 00054 { 00055 return new CodeInstrumentationFunction( $objOriginalReflectionFunction->getName() ); 00056 } 00057 } 00058 } 00059 00060 ?>
1.5.9