PHP Class Pinq\Parsing\FunctionScope

Author: Elliot Levin ([email protected])
Inheritance: implements Pinq\Parsing\IFunctionScope
Mostrar archivo Open project: timetoogo/pinq

Protected Properties

Property Type Description
$scopeType string | null
$thisObject object | null
$thisType string | null
$variableValueMap

Public Methods

Method Description
__construct ( $thisObject, $scopeType, array $variableValueMap )
asEvaluationContext ( array $variableTable = [], $namespace = null )
fromReflection ( ReflectionFunctionAbstract $reflection, callable $callable ) : self Creates a function scope instance from the supplied reflection and callable.
getScopeType ( )
getThis ( )
getThisType ( )
getVariableTable ( )
hasThis ( )

Method Details

__construct() public method

public __construct ( $thisObject, $scopeType, array $variableValueMap )
$variableValueMap array

asEvaluationContext() public method

public asEvaluationContext ( array $variableTable = [], $namespace = null )
$variableTable array

fromReflection() public static method

Creates a function scope instance from the supplied reflection and callable.
public static fromReflection ( ReflectionFunctionAbstract $reflection, callable $callable ) : self
$reflection ReflectionFunctionAbstract
$callable callable
return self

getScopeType() public method

public getScopeType ( )

getThis() public method

public getThis ( )

getThisType() public method

public getThisType ( )

getVariableTable() public method

public getVariableTable ( )

hasThis() public method

public hasThis ( )

Property Details

$scopeType protected_oe property

protected string|null $scopeType
return string | null

$thisObject protected_oe property

protected object|null $thisObject
return object | null

$thisType protected_oe property

protected string|null $thisType
return string | null

$variableValueMap protected_oe property

protected $variableValueMap