@@ -159,6 +159,9 @@ discard block |
||
| 159 | 159 | return $this->children; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | + /** |
|
| 163 | + * @param string $value |
|
| 164 | + */ |
|
| 162 | 165 | public function setContent($value) |
| 163 | 166 | { |
| 164 | 167 | $this->_children = []; |
@@ -259,7 +262,7 @@ discard block |
||
| 259 | 262 | * |
| 260 | 263 | * @param string $attribute Attribute name, optionally with prefix |
| 261 | 264 | * @param string|null $uri XML Namespace URI of attribute, prefix will be automatically looked up |
| 262 | - * @return bool|mixed |
|
| 265 | + * @return string |
|
| 263 | 266 | */ |
| 264 | 267 | public function getAttribute(string $attribute, string $uri = null) |
| 265 | 268 | { |
@@ -481,7 +484,7 @@ discard block |
||
| 481 | 484 | * |
| 482 | 485 | * @param callable|string $predicate Predicate or class name |
| 483 | 486 | * |
| 484 | - * @return XmlElement|false |
|
| 487 | + * @return XmlElement|null |
|
| 485 | 488 | */ |
| 486 | 489 | public function get($predicate) |
| 487 | 490 | { |
@@ -267,7 +267,7 @@ |
||
| 267 | 267 | } else { |
| 268 | 268 | $deferred->resolve($stanza); |
| 269 | 269 | } |
| 270 | - }, with\stanza\id($stanza->id)); |
|
| 270 | + }, with\stanza\id($stanza->id)); |
|
| 271 | 271 | $this->write($stanza); |
| 272 | 272 | |
| 273 | 273 | return $deferred->promise(); |