Author: Elliot Levin (elliotlevin@hotmail.com)
Exemplo n.º 1
0
 protected function doWalk(O\Expression $expression)
 {
     if ($this->processor->matches($this->function, $expression)) {
         $processParameterCallback = $this->processParameterCallback;
         $expression = $processParameterCallback($this->processor, $expression);
     }
     return parent::doWalk($expression);
 }
Exemplo n.º 2
0
 public function walkClassConstant(O\ClassConstantExpression $expression)
 {
     $classExpression = $expression->getClass();
     if ($classExpression instanceof O\ValueExpression && strtolower($expression->getName()) === 'class') {
         $classConstantValue = $this->resolveMagicScopeClassConstant($classExpression->getValue());
         if ($classConstantValue === null) {
             return $expression;
         }
         return O\Expression::value($classConstantValue);
     }
     return parent::walkClassConstant($this->resolveMagicScopeExpression($expression));
 }
Exemplo n.º 3
0
 public function traverse(ExpressionWalker $walker)
 {
     return $walker->walkAssignment($this);
 }
Exemplo n.º 4
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));
 }
Exemplo n.º 5
0
 public function traverse(ExpressionWalker $walker)
 {
     return $walker->walkValue($this);
 }