PHP Interface Pinq\Expressions\IEvaluationContext

Author: Elliot Levin ([email protected])
ファイルを表示 Open project: timetoogo/pinq Interface Usage Examples

Public Methods

Method Description
getNamespace ( ) : string | null Gets the namespace to perform the evaluation.
getScopeType ( ) : string | null Gets the scope type to perform the evaluation.
getThis ( ) : object | null Gets the instance bound to $this variable.
getVariableTable ( ) : array Gets a map of values indexed by their respective variable name.
hasNamespace ( ) : boolean Whether the evaluation is performed under a namespace.
hasScopeType ( ) : boolean Whether the evaluation is performed in a class scope.
hasThis ( ) : boolean Whether there is an instance bound to the $this variable.
withVariableTable ( array $variableTable ) : Pinq\Expressions\IEvaluationContext Returns a new evaluation context with the variable value map.

Method Details

getNamespace() public method

Gets the namespace to perform the evaluation.
public getNamespace ( ) : string | null
return string | null

getScopeType() public method

Gets the scope type to perform the evaluation.
public getScopeType ( ) : string | null
return string | null

getThis() public method

Gets the instance bound to $this variable.
public getThis ( ) : object | null
return object | null

getVariableTable() public method

Gets a map of values indexed by their respective variable name.
public getVariableTable ( ) : array
return array

hasNamespace() public method

Whether the evaluation is performed under a namespace.
public hasNamespace ( ) : boolean
return boolean

hasScopeType() public method

Whether the evaluation is performed in a class scope.
public hasScopeType ( ) : boolean
return boolean

hasThis() public method

Whether there is an instance bound to the $this variable.
public hasThis ( ) : boolean
return boolean

withVariableTable() public method

Returns a new evaluation context with the variable value map.
public withVariableTable ( array $variableTable ) : Pinq\Expressions\IEvaluationContext
$variableTable array
return Pinq\Expressions\IEvaluationContext