CoreFiles by mySites.guru
TableRows.php32 lines, 597 bytes, from Joomla_4.0.4-Stable-Full_Package.zip
Raw History Compare with 4.0.3
md5
4096a442ae4eba16a7004f359fc2603d
sha1
e88a727600a792a242eb5d3da3639f8ef25824a7
sha256
167e8f7d0b17abe0538365bdec5198058f7ada0f5c780fa788487532faeaec87
<?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 $generator;

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

    public function getIterator(): \Traversable
    {
        $g = $this->generator;

        return $g();
    }
}

The same content is in 34 releases, Joomla 4.0.0-beta to 4.1.0-beta2. See them all, or every version of this file.