@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | protected $mapping; |
29 | 29 | protected $extension; |
30 | 30 | |
31 | + /** |
|
32 | + * @param DOMDocument $import |
|
33 | + */ |
|
31 | 34 | public function __construct($import = null) |
32 | 35 | { |
33 | 36 | parent::__construct('1.0', 'UTF-8'); |
@@ -50,6 +53,9 @@ discard block |
||
50 | 53 | $this->getStructure(); |
51 | 54 | } |
52 | 55 | |
56 | + /** |
|
57 | + * @param string $path |
|
58 | + */ |
|
53 | 59 | public function set($path = null, $value = null) |
54 | 60 | { |
55 | 61 | $path = $this->realxpath($path); |
@@ -65,6 +71,9 @@ discard block |
||
65 | 71 | return $this->nodes[$path]; |
66 | 72 | } |
67 | 73 | |
74 | + /** |
|
75 | + * @param string $query |
|
76 | + */ |
|
68 | 77 | public function get($query) |
69 | 78 | { |
70 | 79 | $nodes = $this->xpath->query($query); |
@@ -91,6 +100,9 @@ discard block |
||
91 | 100 | return $this->saveXML(); |
92 | 101 | } |
93 | 102 | |
103 | + /** |
|
104 | + * @param string $path |
|
105 | + */ |
|
94 | 106 | protected function createNodes($path) |
95 | 107 | { |
96 | 108 | $path_parts = explode('/', $path); |
@@ -237,6 +249,9 @@ discard block |
||
237 | 249 | } |
238 | 250 | } |
239 | 251 | |
252 | + /** |
|
253 | + * @return string |
|
254 | + */ |
|
240 | 255 | private function className($class) |
241 | 256 | { |
242 | 257 | if (!is_string($class)) { |