Pinq\Parsing\IFunctionReflection::getScope PHP Method

getScope() public method

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

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);
     }
 }