1: <?php
2:
3: /**
4: * @copyright Copyright (c) 2009-2022 ThemeCatcher (https://www.themecatcher.net)
5: */
6: class Quform_Form_Iterator extends RecursiveArrayIterator implements RecursiveIterator
7: {
8: public function __construct(Quform_Form $form)
9: {
10: parent::__construct($form->getPages());
11: }
12:
13: #[ReturnTypeWillChange]
14: public function hasChildren()
15: {
16: return $this->current() instanceof Quform_Element_Container;
17: }
18:
19: #[ReturnTypeWillChange]
20: public function getChildren()
21: {
22: return new Quform_Element_Container_Iterator($this->current());
23: }
24: }
25: