Pinq\Parsing\IFunctionReflection::getGlobalHash PHP Method

getGlobalHash() public method

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

Usage Example

Example #1
0
 protected final function resolveFunctionScope(IFunction $function, Parsing\IFunctionReflection $reflection)
 {
     $this->hash .= $reflection->getGlobalHash();
     if (!$reflection->getSignature()->isStatic()) {
         $this->resolveParameter($this->getFunctionScopedVariableParameter($function, 'this'), $reflection->getScope()->getThis());
     }
     $variableValueMap = $reflection->getScope()->getVariableTable();
     foreach ($variableValueMap as $variableName => $value) {
         $this->resolveParameter($this->getFunctionScopedVariableParameter($function, $variableName), $value);
     }
 }