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()));
 }