@@ -126,6 +126,9 @@ |
||
126 | 126 | return [$name, $namespace]; |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param string|null $prefix |
|
131 | + */ |
|
129 | 132 | private function _lookup($prefix, $namespaces) |
130 | 133 | { |
131 | 134 | if ($prefix === 'xmlns') { |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * Retrieves array of matching elements |
221 | 221 | * |
222 | 222 | * @param string $name Requested element tag name |
223 | - * @param null $uri Requested element namespace |
|
223 | + * @param null|string $uri Requested element namespace |
|
224 | 224 | * |
225 | 225 | * @return XmlElement[] Found Elements |
226 | 226 | */ |
@@ -248,6 +248,9 @@ discard block |
||
248 | 248 | return $this->elements($name, $uri)[$index] ?? false; |
249 | 249 | } |
250 | 250 | |
251 | + /** |
|
252 | + * @param \Closure $predicate |
|
253 | + */ |
|
251 | 254 | public function all($predicate) { |
252 | 255 | $predicate = filter\predicate($predicate); |
253 | 256 | return array_filter($this->_children, $predicate); |