# depicter/trunk/vendor/symfony/console/Helper/TableRows.php

Depicter — Popup &amp; Slider Builder, version trunk. 31 lines.

- Page: https://pluginprobe.com/plugins/depicter/trunk/code/vendor/symfony/console/Helper/TableRows.php
- Raw: https://pluginprobe.com/plugins/depicter/trunk/raw/vendor/symfony/console/Helper/TableRows.php
- Modified: 2024-06-17T04:01:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/trunk/code/vendor/symfony/console/Helper/TableRows.php#L10-L20`.

```php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Helper;

/**
 * @internal
 */
class TableRows implements \IteratorAggregate
{
    private $generator;

    public function __construct(\Closure $generator)
    {
        $this->generator = $generator;
    }

    public function getIterator(): \Traversable
    {
        return ($this->generator)();
    }
}

```
