Skip to content

Commit d252d33

Browse files
author
Andrey Helldar
authored
Added appendToDoc() method
1 parent 4c5ae0a commit d252d33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Facades/Xml.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public function appendToRoot(DOMElement $element)
7171
{
7272
$this->appendChild($this->root, $element);
7373
}
74+
75+
public function appendToDoc(DOMElement $element)
76+
{
77+
$this->appendChild($this->doc, $element);
78+
}
7479

7580
public function get(): string
7681
{

0 commit comments

Comments
 (0)