PHP Class Pinq\Queries\Functions\FunctionEvaluationContextFactory

Contains the necessary data to build an evaluation context of the original function.
Author: Elliot Levin ([email protected])
Show file Open project: timetoogo/pinq Class Usage Examples

Protected Properties

Property Type Description
$callableId string
$namespace string | null
$parameterScopedVariableMap Array containing the scoped variable names of the function indexed by their respective parameter names.
$scopeType string | null
$unusedParameterDefaultMap Pinq\Expressions\IEvaluator[] Array of the unused parameter's default value expression indexed by their parameter name.

Public Methods

Method Description
__construct ( $namespace, $scopeType, $callableId, array $parameterScopedVariableMap, array $unusedParameterDefaultExpressionMap )
getCallableId ( ) : string
getEvaluationContext ( Pinq\Queries\IResolvedParameterRegistry $parameters = null ) : Pinq\Expressions\IEvaluationContext Gets an evaluation context for function with the resolved parameters.
getNamespace ( ) : string | null
getParameterScopedVariableMap ( ) : array
getScopeType ( ) : string | null
hasNamespace ( ) : boolean
hasScopeType ( ) : boolean

Method Details

__construct() public method

public __construct ( $namespace, $scopeType, $callableId, array $parameterScopedVariableMap, array $unusedParameterDefaultExpressionMap )
$parameterScopedVariableMap array
$unusedParameterDefaultExpressionMap array

getCallableId() public method

public getCallableId ( ) : string
return string

getEvaluationContext() public method

Gets an evaluation context for function with the resolved parameters.
public getEvaluationContext ( Pinq\Queries\IResolvedParameterRegistry $parameters = null ) : Pinq\Expressions\IEvaluationContext
$parameters Pinq\Queries\IResolvedParameterRegistry
return Pinq\Expressions\IEvaluationContext

getNamespace() public method

public getNamespace ( ) : string | null
return string | null

getParameterScopedVariableMap() public method

public getParameterScopedVariableMap ( ) : array
return array

getScopeType() public method

public getScopeType ( ) : string | null
return string | null

hasNamespace() public method

public hasNamespace ( ) : boolean
return boolean

hasScopeType() public method

public hasScopeType ( ) : boolean
return boolean

Property Details

$callableId protected property

protected string $callableId
return string

$namespace protected property

protected string|null $namespace
return string | null

$parameterScopedVariableMap protected property

Array containing the scoped variable names of the function indexed by their respective parameter names.
protected $parameterScopedVariableMap

$scopeType protected property

protected string|null $scopeType
return string | null

$unusedParameterDefaultMap protected property

Array of the unused parameter's default value expression indexed by their parameter name.
protected IEvaluator[],Pinq\Expressions $unusedParameterDefaultMap
return Pinq\Expressions\IEvaluator[]