for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dwo\Aggregator\Model;
use Dwo\Aggregator\Dumper\FlatDumper;
/**
* Class AggregateGroup
*
* @author Dave Www <[email protected]>
*/
class AggregateGroup implements \Iterator
{
use EntriesTrait;
* @param Aggregate $aggregate
public function addAggregate(Aggregate $aggregate)
$this->entries[(string) $aggregate->getGroup()] = $aggregate;
}
* @return array
public function toArray()
return FlatDumper::toArray($this);