for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dwo\Aggregator\Dumper;
/**
* Class FlatDumper
*
* @author Dave Www <[email protected]>
*/
class FlatDumper
{
* @param \Iterator $group
* @return array
public static function toArray(\Iterator $group)
$dump = [];
foreach ($group as $id => $aggregate) {
$dump[$id] = $aggregate->getData();
}
return $dump;