PHP Class Pinq\Parsing\FunctionReflection

Author: Elliot Levin ([email protected])
Inheritance: extends LocatedFunction, implements Pinq\Parsing\IFunctionReflection
Show file Open project: timetoogo/pinq Class Usage Examples

Protected Properties

Property Type Description
$callable callable
$globalHash string
$innerReflection ReflectionFunctionAbstract
$scope Pinq\Parsing\IFunctionScope

Public Methods

Method Description
__construct ( callable $callable, ReflectionFunctionAbstract $innerReflection, Pinq\Parsing\IFunctionSignature $signature, Pinq\Parsing\IFunctionLocation $location, Pinq\Parsing\IFunctionScope $scope )
asEvaluationContext ( array $variableTable = [] )
fromCallable ( callable $callable ) : self Creates a new function reflection instance from the supplied callable.
getCallable ( )
getGlobalHash ( )
getInnerReflection ( )
getScope ( )
resolveMagic ( Pinq\Parsing\IFunctionDeclaration $declaration )

Protected Methods

Method Description
fullyQualify ( $type )

Private Methods

Method Description
resolveMagicConstants ( Pinq\Parsing\IFunctionDeclaration $declaration )
resolveMagicScopes ( Pinq\Parsing\IFunctionDeclaration $declaration )

Method Details

__construct() public method

public __construct ( callable $callable, ReflectionFunctionAbstract $innerReflection, Pinq\Parsing\IFunctionSignature $signature, Pinq\Parsing\IFunctionLocation $location, Pinq\Parsing\IFunctionScope $scope )
$callable callable
$innerReflection ReflectionFunctionAbstract
$signature Pinq\Parsing\IFunctionSignature
$location Pinq\Parsing\IFunctionLocation
$scope Pinq\Parsing\IFunctionScope

asEvaluationContext() public method

public asEvaluationContext ( array $variableTable = [] )
$variableTable array

fromCallable() public static method

Creates a new function reflection instance from the supplied callable.
public static fromCallable ( callable $callable ) : self
$callable callable
return self

fullyQualify() protected method

protected fullyQualify ( $type )

getCallable() public method

public getCallable ( )

getGlobalHash() public method

public getGlobalHash ( )

getInnerReflection() public method

public getInnerReflection ( )

getScope() public method

public getScope ( )

resolveMagic() public method

public resolveMagic ( Pinq\Parsing\IFunctionDeclaration $declaration )
$declaration Pinq\Parsing\IFunctionDeclaration

Property Details

$callable protected property

protected callable $callable
return callable

$globalHash protected property

protected string $globalHash
return string

$innerReflection protected property

protected ReflectionFunctionAbstract $innerReflection
return ReflectionFunctionAbstract

$scope protected property

protected IFunctionScope,Pinq\Parsing $scope
return Pinq\Parsing\IFunctionScope