PHP Interface Pinq\Expressions\IEvaluator

Author: Elliot Levin ([email protected])
Mostra file Open project: timetoogo/pinq Interface Usage Examples

Public Methods

Method Description
evaluate ( array $variableTable = null ) : mixed Evaluates the expression with the supplied variable table and returns the returned value.
evaluateWithNewThis ( object | null $thisObject, array $variableTable = null ) : mixed Evaluates the expression with the supplied variable table and this object and returns the returned value.
getContext ( ) : Pinq\Expressions\IEvaluationContext Gets the evaluation context.
getRequiredVariables ( ) : string[] Gets the required variables for the evaluator.

Method Details

evaluate() public method

The default variables from the context can be overridden in the first parameter.
public evaluate ( array $variableTable = null ) : mixed
$variableTable array
return mixed

evaluateWithNewThis() public method

The default variables from the context can be overridden in the first parameter.
public evaluateWithNewThis ( object | null $thisObject, array $variableTable = null ) : mixed
$thisObject object | null
$variableTable array
return mixed

getContext() public method

Gets the evaluation context.
public getContext ( ) : Pinq\Expressions\IEvaluationContext
return Pinq\Expressions\IEvaluationContext

getRequiredVariables() public method

Gets the required variables for the evaluator.
public getRequiredVariables ( ) : string[]
return string[]