CoreFiles by mySites.guru
TableRows.php30 lines, 590 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
c4abbbbe589472cdfb3ac83231a78270
sha1
e6b4508df36291b6b80d67c87ab4954fadbc70cd
sha256
d0e95f1760e64a22253da9473295c68019011b346adb5eaf5bec4d2669850c58
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * 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 \Closure $generator;

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

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

The same content is in 108 releases, Joomla 5.0.0-alpha1 to 6.0.0-alpha3. See them all, or every version of this file.