Tomas Votruba 55b0e2405f Updated Rector to commit d34b8469aa1eafe0f41138a0aa03f61e2a996b03
d34b8469aa Add test fixture and fix for AnnotationToAttributeRector (#145)
2021-06-04 11:46:51 +00:00

29 lines
615 B
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 RectorPrefix20210604\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();
}
}