diff --git a/helpers/XmlHelper.php b/helpers/XmlHelper.php index 4f70e83..d697faa 100755 --- a/helpers/XmlHelper.php +++ b/helpers/XmlHelper.php @@ -15,4 +15,20 @@ $element .= '>' . $value . ''; return $element; } + + public static function createOpeningElement(string $name, array $attributes = []) + { + $element = '<' . $name; + foreach ($attributes as $key => $attribute) { + $element .= ' ' . $key . '="' . $attribute . '"'; + } + $element .= '>'; + return $element; + } + + public static function createClosingElement(string $name) + { + $element = ''; + return $element; + } } \ No newline at end of file -- libgit2 0.21.4