update() 공개 메소드

public update ( string | null $scopeType, string | null $namespace, array $parameterScopedVariableMap, array $parameterExpressions, array $bodyExpressions = null ) : static
$scopeType string | null
$namespace string | null
$parameterScopedVariableMap array
$parameterExpressions array
$bodyExpressions array
리턴 static
예제 #1
0
 public function processFunction(IFunction $function)
 {
     $parameterScopeVariableMap = array_map(function ($variable) {
         return $this->prefix . $variable;
     }, $function->getParameterScopedVariableMap());
     return $function->update($function->getScopeType(), $function->getNamespace(), $parameterScopeVariableMap, $this->walkAll($function->getParameters()->getAll()), $this->walkAll($function->getBodyExpressions()));
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function processFunction(IFunction $function)
 {
     return $function->update($function->getScopeType(), $function->getNamespace(), $function->getParameterScopedVariableMap(), $this->walkAll($function->getParameters()->getAll()), $this->walkAll($function->getBodyExpressions()));
 }