@@ -32,6 +32,10 @@ |
||
32 | 32 | return $this->addListener($event, $this->getConditionalCallable($listener, $condition), $priority); |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $event |
|
37 | + * @param \Closure $condition |
|
38 | + */ |
|
35 | 39 | public function once($event, callable $listener, $condition = null, int $priority = 0) |
36 | 40 | { |
37 | 41 | return $this->on($event, $this->getOnceCallable($this->getConditionalCallable($listener, $condition), $event), null, $priority); |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * |
260 | 260 | * @param string $attribute Attribute name, optionally with prefix |
261 | 261 | * @param string|null $uri XML Namespace URI of attribute, prefix will be automatically looked up |
262 | - * @return bool|mixed |
|
262 | + * @return string |
|
263 | 263 | */ |
264 | 264 | public function getAttribute(string $attribute, string $uri = null) |
265 | 265 | { |
@@ -335,6 +335,9 @@ discard block |
||
335 | 335 | return $this->appendChild($element); |
336 | 336 | } |
337 | 337 | |
338 | + /** |
|
339 | + * @param XmlElement $element |
|
340 | + */ |
|
338 | 341 | public function remove($element) |
339 | 342 | { |
340 | 343 | $this->_children = array_filter($this->_children, not(filter\same($element))); |
@@ -200,7 +200,7 @@ |
||
200 | 200 | * Registers module in client's dependency container. |
201 | 201 | * |
202 | 202 | * @param ComponentInterface $module Module to be registered |
203 | - * @param bool|string|array $alias Module alias, class name by default. |
|
203 | + * @param string|boolean $alias Module alias, class name by default. |
|
204 | 204 | * `true` for aliasing interfaces and parents too, |
205 | 205 | * `false` for aliasing as class name only |
206 | 206 | * array for multiple aliases, |