@@ -6,6 +6,9 @@ discard block |
||
6 | 6 | |
7 | 7 | protected $writer = null; |
8 | 8 | |
9 | + /** |
|
10 | + * @param Writer $writer |
|
11 | + */ |
|
9 | 12 | public function __construct( $list = null, $writer = null ) { |
10 | 13 | parent::__construct( $list ); |
11 | 14 | $this->writer = $writer; |
@@ -58,6 +61,9 @@ discard block |
||
58 | 61 | return [ $attributes, $content ]; |
59 | 62 | } |
60 | 63 | |
64 | + /** |
|
65 | + * @param string $content |
|
66 | + */ |
|
61 | 67 | protected function element( $tagName, $attributes, $content ) { |
62 | 68 | $tagName = $this->writer->name( $tagName ); |
63 | 69 | $el = '<' . $tagName; |
@@ -33,6 +33,9 @@ discard block |
||
33 | 33 | } |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $xml |
|
38 | + */ |
|
36 | 39 | private function parsePartial( $xml, $encoding ) |
37 | 40 | { |
38 | 41 | // add a known (single) root element with all declared namespaces |
@@ -53,6 +56,9 @@ discard block |
||
53 | 56 | return $result; |
54 | 57 | } |
55 | 58 | |
59 | + /** |
|
60 | + * @param string $xml |
|
61 | + */ |
|
56 | 62 | private function parseFull( $xml, $encoding = null ) |
57 | 63 | { |
58 | 64 | $dom = new \DomDocument(); |