@@ -78,6 +78,9 @@ |
||
78 | 78 | return [ $attributes, $content ]; |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $content |
|
83 | + */ |
|
81 | 84 | protected function element( $tagName, $attributes, $content ) |
82 | 85 | { |
83 | 86 | $tagName = $this->writer->name( $tagName ); |
@@ -59,6 +59,10 @@ discard block |
||
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $xml |
|
64 | + * @param string|null $encoding |
|
65 | + */ |
|
62 | 66 | private function parsePartial( $xml, $encoding ) |
63 | 67 | { |
64 | 68 | // add a known (single) root element with all declared namespaces |
@@ -79,6 +83,9 @@ discard block |
||
79 | 83 | return $result; |
80 | 84 | } |
81 | 85 | |
86 | + /** |
|
87 | + * @param string $xml |
|
88 | + */ |
|
82 | 89 | private function parseFull( $xml, $encoding = null ) |
83 | 90 | { |
84 | 91 | $dom = new \DomDocument(); |