* * 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:----PBCtEEult9ao+tuTXjdE0Wv/uQ+/lM2Qp/8/BSh1rzLxM2SeeW34BtflpmFCpJa2EqO8LaUbm70jexCjXxniPIPay/u0IvY2M30ntf+b4YzHZcO44ty80y0IyNt1pPfxVe0cuaRf+0LStVp7tqc4RrK3tusSncjYH/lq2t20MbFwFfOAczOrjKqceYsoDIG+yyrwireRZnVECN9iSp/WuplJRblt7fF68hpS75+jN1e44l1FX7vy+J/CAchCaUSAn5eH5Fedk+AMlKBVUqW1BrfwgDWB+bB2B98HYfl1yHGyaSZCG5MvHbE1iVtdv4A5DmCSrAwzYqXqAqus/CQcF4gHtTNScu+Ii3LxUCCTYiEZZ0DfFz3B1h+7/MyFJSP32h4fc0VrY6T5ix1YXLeG3L7nqzU2veZQCFm2M45SHD4s9Ev85ctL5N2+GxEMKdP1f8ldc3ncUQ+GL0D0jqpSBXkUdfR8MEr0+eSnCmhFcBYhzgCK5mSXuEC0QXUnHhUN049+WrxkfpoLPaXZLrLaBMpTWd9eFc6NmRJ6fhJcpB25dBYL4lfN9uV+1S90+uTvX3D+1bOJWbmhRckGZxN2GW0xCyclMa3LwwIGIAtpfDlLLCi5rWQf+PfZeDbW23aDhKKgj9OmEm2+nERnKaoQLDqMPkQHJ+fG8Rylt6MxS4E=----ATTACHMENT:----MTIwMjYyNzEzNjUwMzc4MCA3Mjk1NjMxOTA0ODU4NTQzIDIwMzU2NTExMjA5MzMxMTY=