Contains the necessary data to build an evaluation context of the original function.
Автор: Elliot Levin (elliotlevin@hotmail.com)
Пример #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());
 }
Пример #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));
 }