diff --git a/src/Kunstmaan/NodeBundle/Entity/NodeIterator.php b/src/Kunstmaan/NodeBundle/Entity/NodeIterator.php index 8fea7a28f0..f85229f868 100644 --- a/src/Kunstmaan/NodeBundle/Entity/NodeIterator.php +++ b/src/Kunstmaan/NodeBundle/Entity/NodeIterator.php @@ -23,7 +23,7 @@ public function hasChildren() } /** - * @return \?RecursiveIterator + * @return \RecursiveIterator */ #[\ReturnTypeWillChange] public function getChildren() @@ -31,26 +31,41 @@ public function getChildren() return new NodeIterator($this->_data->current()->getChildren()); } + /** + * @return Node + */ public function current() { return $this->_data->current(); } + /** + * @return void + */ public function next() { $this->_data->next(); } + /** + * @return int + */ public function key() { return $this->_data->key(); } + /** + * @return bool + */ public function valid() { return $this->_data->current() instanceof Node; } + /** + * @return void + */ public function rewind() { $this->_data->first();