PHP Interface Pinq\Parsing\IFunctionScope

Author: Elliot Levin ([email protected])
Show file Open project: timetoogo/pinq

Public Methods

Method Description
asEvaluationContext ( array $variableTable = [], string | null $namespace = null ) : Pinq\Expressions\IEvaluationContext Gets an equivalent evaluation context for the function scope.
getScopeType ( ) : string | null Gets the scoped class type (determines which private/protected members are accessible).
getThis ( ) : object | null Gets the scoped $this variable object.
getThisType ( ) : string | null Gets the scoped $this variable type.
getVariableTable ( ) : array Gets an array containing scoped values indexed by their respective variable name.
hasThis ( ) : boolean Whether the function has a scoped $this class.

Method Details

asEvaluationContext() public method

Gets an equivalent evaluation context for the function scope.
public asEvaluationContext ( array $variableTable = [], string | null $namespace = null ) : Pinq\Expressions\IEvaluationContext
$variableTable array
$namespace string | null
return Pinq\Expressions\IEvaluationContext

getScopeType() public method

Gets the scoped class type (determines which private/protected members are accessible).
public getScopeType ( ) : string | null
return string | null

getThis() public method

Gets the scoped $this variable object.
public getThis ( ) : object | null
return object | null

getThisType() public method

Gets the scoped $this variable type.
public getThisType ( ) : string | null
return string | null

getVariableTable() public method

Gets an array containing scoped values indexed by their respective variable name.
public getVariableTable ( ) : array
return array

hasThis() public method

Whether the function has a scoped $this class.
public hasThis ( ) : boolean
return boolean