public static function create($name) {
    $name = (string) $name;
    $name = ltrim($name, '\\');
    $namespace_node = Parser::parseSnippet("namespace $name;");
    return $namespace_node;
  }
public static function create($name) {
    $name = (string) $name;
    $name = ltrim($name, '\\');
    $namespace_node = Parser::parseSnippet("namespace $name;");
    return $namespace_node;
  }
public static function create ( $ name ) { $ name = ( string ) $ name ; $ name = ltrim ( $ name , '\\' ) ; $ namespace_node = Parser :: parseSnippet ( "namespace $name;" ) ; return $ namespace_node ; }
Create namespace declaration.

@param NameNode|string $name
Namespace path.

@return NamespaceNode
Create namespace declaration .