PHP Class Pinq\Queries\Functions\FunctionEvaluationContextFactory

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

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 méthode

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

getCallableId() public méthode

public getCallableId ( ) : string
Résultat string

getEvaluationContext() public méthode

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

getNamespace() public méthode

public getNamespace ( ) : string | null
Résultat string | null

getParameterScopedVariableMap() public méthode

public getParameterScopedVariableMap ( ) : array
Résultat array

getScopeType() public méthode

public getScopeType ( ) : string | null
Résultat string | null

hasNamespace() public méthode

public hasNamespace ( ) : boolean
Résultat boolean

hasScopeType() public méthode

public hasScopeType ( ) : boolean
Résultat boolean

Property Details

$callableId protected_oe property

protected string $callableId
Résultat string

$namespace protected_oe property

protected string|null $namespace
Résultat string | null

$parameterScopedVariableMap protected_oe property

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

$scopeType protected_oe property

protected string|null $scopeType
Résultat string | null

$unusedParameterDefaultMap protected_oe property

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