getNamespace() public method

Null if was defined in the global namespace.
public getNamespace ( ) : string | null
return string | null
 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()));
 }
Beispiel #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()));
 }