ExtendedReflectionFunction Class Reference

Inheritance diagram for ExtendedReflectionFunction:

ReflectionFunction CodeReflectionFunction CodeInstrumentationFunction

List of all members.

Public Member Functions

 getParameters ()

Protected Member Functions

 createExtendedReflectionParameter (ReflectionParameter $objReflectionParameter)


Detailed Description

Class what make possible and easy extend reflection function

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.

Author:
Thiago Henrique Ramos da Mata <thiago.henrique.mata@gmail.com>

Definition at line 19 of file ExtendedReflectionFunction.class.php.


Member Function Documentation

createExtendedReflectionParameter ( ReflectionParameter objReflectionParameter  )  [protected]

Convert a reflection parameter into a extended reflection parameter

This is the method what should be replaced when this class be extended.

Parameters:
ReflectionParameter $objReflectionParameter
Returns:
ExtendedReflectionParameter

Reimplemented in CodeInstrumentationFunction, and CodeReflectionFunction.

Definition at line 47 of file ExtendedReflectionFunction.class.php.

Referenced by getParameters().

00048         {
00049                 return new ExtendedReflectionParameter( $this->getDeclaringClass()->getName() , $this->getName() , $objReflectionParameter->getName() );
00050         }

getParameters (  )  [final]

Return a list of the parameters of the reflected function

Returns:
ExtendedReflectionParameter[]

Definition at line 26 of file ExtendedReflectionFunction.class.php.

References createExtendedReflectionParameter().

Referenced by CodeReflectionFunction::createParametersCode().

00027     {
00028         $arrReflectionParameters = parent::getParameters();
00029         $arrExtendedParameters = array();
00030                 foreach( $arrReflectionParameters as $objReflectionParameter )
00031                 {
00032                         /*@var $objReflectionParameter ReflectionParameter */
00033                         $arrExtendedParameteres[] = $this->createExtendedReflectionParameter( $objReflectionParameter );
00034                 }
00035                 return $arrExtendedParameters;
00036     }


The documentation for this class was generated from the following file:

Generated on Thu Feb 3 03:55:03 2011 for CodeToDiagram by  doxygen 1.5.9