PHP Interface Pinq\Parsing\IFunctionReflection

Author: Elliot Levin ([email protected])
Inheritance: extends Pinq\Parsing\ILocatedFunction
Show file Open project: timetoogo/pinq Interface Usage Examples

Public Methods

Method Description
asEvaluationContext ( array $variableTable = [] ) : Pinq\Expressions\IEvaluationContext Gets an evaluation context for the same context as the reflected function.
getCallable ( ) : callable Gets the function callable.
getGlobalHash ( ) : string Gets a globally unique hash of the function based on its signature, location and class scope.
getInnerReflection ( ) : ReflectionFunctionAbstract Gets the native function reflection.
getScope ( ) : Pinq\Parsing\IFunctionScope Gets the scope of the function.
resolveMagic ( Pinq\Parsing\IFunctionDeclaration $functionDeclaration ) : Pinq\Parsing\IFunctionMagic Gets the resolved magic constants/scopes of the function from the supplied declaration structure.

Method Details

asEvaluationContext() public method

Gets an evaluation context for the same context as the reflected function.
public asEvaluationContext ( array $variableTable = [] ) : Pinq\Expressions\IEvaluationContext
$variableTable array
return Pinq\Expressions\IEvaluationContext

getCallable() public method

Gets the function callable.
public getCallable ( ) : callable
return callable

getGlobalHash() public method

Gets a globally unique hash of the function based on its signature, location and class scope.
public getGlobalHash ( ) : string
return string

getInnerReflection() public method

Gets the native function reflection.
public getInnerReflection ( ) : ReflectionFunctionAbstract
return ReflectionFunctionAbstract

getScope() public method

Gets the scope of the function.
public getScope ( ) : Pinq\Parsing\IFunctionScope
return Pinq\Parsing\IFunctionScope

resolveMagic() public method

Gets the resolved magic constants/scopes of the function from the supplied declaration structure.
public resolveMagic ( Pinq\Parsing\IFunctionDeclaration $functionDeclaration ) : Pinq\Parsing\IFunctionMagic
$functionDeclaration Pinq\Parsing\IFunctionDeclaration
return Pinq\Parsing\IFunctionMagic