Contains the necessary data to build an evaluation context of the original function.
Author: Elliot Levin (elliotlevin@hotmail.com)
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());
 }
Example #2
0
 public final function walk(O\ExpressionWalker $walker)
 {
     return $this->update($this->evaluationContextFactory->getScopeType(), $this->evaluationContextFactory->getNamespace(), $this->evaluationContextFactory->getParameterScopedVariableMap(), $walker->walkAll($this->parameters->getAll()), $this->isInternal() ? null : $walker->walkAll($this->bodyExpressions));
 }