Contains the necessary data to build an evaluation context of the original function.
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()); }
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)); }