public function restoreFunction(ASTFunction $function) { $this->buildNamespace($function->getNamespaceName())->addFunction($function); }