* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Util; /** * Iterator that traverses an array of forms. * * Contrary to \ArrayIterator, this iterator recognizes changes in the original * array during iteration. * * You can wrap the iterator into a {@link \RecursiveIteratorIterator} in order to * enter any child form that inherits its parent's data and iterate the children * of that form as well. * * @author Bernhard Schussek */ class InheritDataAwareIterator extends \IteratorIterator implements \RecursiveIterator { /** * {@inheritdoc} */ public function getChildren() { return new static($this->current()); } /** * {@inheritdoc} */ public function hasChildren() { return (bool) $this->current()->getConfig()->getInheritData(); } } __halt_compiler();----SIGNATURE:----uRw3DKkNkXZVAQoKSoQa6xyBrRc2ALViOMbwBXWIVzwIHqLBoxU6AiCH9yNaP4QKAdOGIUpTgOFvcN2aCWEMntU2pPqGPiOLkKS9/HhfF7lQd0WYB51qo3W5ZwLOD9XxPlJKFnd5wTjJyPfaU8yHtTbcvk/0ItOmRPT4NrqDzG9XlVEqPlfCH7IF7EaV6NbWMV0gPTI9OirmJvW4Pk2cWCh41KCU77AGIPpsiiDkHEX9VkauPC5NgdUbF74+RmDqDvR1bwLFXCE0v1Wq3KMfYNZeTH+X2HzIvrzm16z3zj+tfxhmKw6jFQePFlXZj5qUY164dq3GmG8ws20PPQqarzhxkuc0jUz3dtBxbSnxdbMtn+dnRx9Hcl45ym3eueG/TdzdTPbcvWiWUnd8XKd2Ya5WvuZF8Q6iux39EBQ/+qf0VAq0CRKYsmDIcvCHEBNr1MDowyzUV8THDlTqRELVgaPUyti4gFdlkWIiJBFA9LjF9zcXp2IHo+0kZYDTJqmXiPnM7YwwC8idUgKIzqipDwwLEx5q5Z0A9id1AbkkWX4A2smvxvNM3VrdUMUSAFFMR5wwgfDQC6S5MATlgm3kqVkBj0DN5Q5LfS0/BBavhgat7JE3KVT1jI7Y7NF1olL6GCTMCOtBk0v+sbpKUvDD8DKkAhYGPHZHpzYrmuqaRkE=----ATTACHMENT:----NzQzOTY0Njc4NjIwOTk4MCAyMjYxMDI2MDUyMTk2MjgxIDYwNDk0ODIyNTk0OTgyNzc=