4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Form\Util
;
15 * Iterator that returns only forms from a form tree that do not inherit their
18 * If the iterator encounters a form that inherits its parent data, it enters
19 * the form and traverses its children as well.
21 * @author Bernhard Schussek <bschussek@gmail.com>
23 class InheritDataAwareIterator
extends VirtualFormAwareIterator
26 * Creates a new iterator.
28 * @param \Symfony\Component\Form\FormInterface[] $forms An array
30 public function __construct(array $forms)
32 // Skip the deprecation error
33 \ArrayIterator
::__construct($forms);