From d896acf12654c0eb9d4b1b3fcd308a3e4514682c Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Mon, 25 Oct 2021 14:51:04 +0200 Subject: [PATCH] [NodeBundle] Add docblock return types for node iterator class --- .../NodeBundle/Entity/NodeIterator.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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();