Pinq\Expressions\IEvaluator::evaluate PHP Method

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
    public function evaluate(array $variableTable = null);

Usage Example

コード例 #1
0
 public function doEvaluate(IResolvedParameterRegistry $parameters)
 {
     if ($this->contextFactory === null) {
         return $this->evaluator->evaluate();
     }
     $resolvedContext = $this->contextFactory->getEvaluationContext($parameters);
     return $this->evaluator->evaluateWithNewThis($resolvedContext->getThis(), $resolvedContext->getVariableTable());
 }